; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/tracing (sc_vcd_trace)

; 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"

%struct.SC_TIMESCALE_TO_TEXT = type { double, 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.sc_core::sc_time" = type { i64 }
%"class.std::allocator" = type { i8 }
%"class.sc_core::sc_trace_file_base" = type <{ %"class.sc_core::sc_trace_file", ptr, double, i8, [7 x i8], %"class.std::__cxx11::basic_string", i8, i8, [6 x i8] }>
%"class.sc_core::sc_trace_file" = type { ptr }
%"class.sc_core::vcd_trace_file" = type { %"class.sc_core::sc_trace_file_base.base", i32, i32, i32, %"class.std::vector" }
%"class.sc_core::sc_trace_file_base.base" = type <{ %"class.sc_core::sc_trace_file", ptr, double, i8, [7 x i8], %"class.std::__cxx11::basic_string", i8, i8 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::vcd_trace *, std::allocator<sc_core::vcd_trace *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::vcd_trace *, std::allocator<sc_core::vcd_trace *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::vcd_trace *, std::allocator<sc_core::vcd_trace *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::vcd_trace *, std::allocator<sc_core::vcd_trace *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text = external hidden global [18 x %struct.SC_TIMESCALE_TO_TEXT], align 16
@_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text = external hidden global i64, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZZN7sc_core14vcd_trace_file13do_initializeEvE19timescale_to_text_n = external hidden global i32, align 4
@.str.36 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1

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 #0 align 2

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

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

declare i32 @fputs(ptr noundef, ptr noundef) #4

declare i32 @fputc(i32 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core14vcd_trace_file13do_initializeEv(ptr noundef nonnull align 8 dereferenceable(104) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca [2000 x i8], align 16
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.sc_core::sc_time", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.sc_core::sc_time", align 8
  %9 = alloca %"class.sc_core::sc_time", align 8
  %10 = alloca %"class.sc_core::sc_time", align 8
  %11 = alloca %"class.sc_core::sc_time", align 8
  %12 = alloca %"class.sc_core::sc_time", align 8
  %13 = alloca %"class.sc_core::sc_time", align 8
  %14 = alloca %"class.sc_core::sc_time", align 8
  %15 = alloca %"class.sc_core::sc_time", align 8
  %16 = alloca %"class.sc_core::sc_time", align 8
  %17 = alloca %"class.sc_core::sc_time", align 8
  %18 = alloca %"class.sc_core::sc_time", align 8
  %19 = alloca %"class.sc_core::sc_time", align 8
  %20 = alloca %"class.sc_core::sc_time", align 8
  %21 = alloca %"class.sc_core::sc_time", align 8
  %22 = alloca %"class.sc_core::sc_time", align 8
  %23 = alloca %"class.sc_core::sc_time", align 8
  %24 = alloca %"class.sc_core::sc_time", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca double, align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %33 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 2000, ptr %3) #5
  %34 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @_ZN7sc_core16localtime_stringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4)
  %36 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.16, ptr noundef %36) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %38 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call noundef ptr @_ZN7sc_core10sc_versionEv()
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.17, ptr noundef %40) #5
  %42 = load atomic i8, ptr @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text acquire, align 8
  %43 = icmp eq i8 %42, 0
  br i1 %43, label %44, label %102, !prof !17

44:                                               ; preds = %1
  %45 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %102

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef 1.000000e+00, i32 noundef 0)
          to label %48 unwind label %108

48:                                               ; preds = %47
  %49 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %50 unwind label %108

50:                                               ; preds = %48
  store double %49, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, align 16, !tbaa !18
  store ptr @.str.18, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %8, double noundef 1.000000e+01, i32 noundef 0)
          to label %51 unwind label %112

51:                                               ; preds = %50
  %52 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %53 unwind label %112

53:                                               ; preds = %51
  store double %52, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 1), align 16, !tbaa !18
  store ptr @.str.19, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 1), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %9, double noundef 1.000000e+02, i32 noundef 0)
          to label %54 unwind label %116

54:                                               ; preds = %53
  %55 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %56 unwind label %116

56:                                               ; preds = %54
  store double %55, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 2), align 16, !tbaa !18
  store ptr @.str.20, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 2), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef 1.000000e+00, i32 noundef 1)
          to label %57 unwind label %120

57:                                               ; preds = %56
  %58 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %59 unwind label %120

59:                                               ; preds = %57
  store double %58, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 3), align 16, !tbaa !18
  store ptr @.str.21, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 3), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %11, double noundef 1.000000e+01, i32 noundef 1)
          to label %60 unwind label %124

60:                                               ; preds = %59
  %61 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %62 unwind label %124

62:                                               ; preds = %60
  store double %61, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 4), align 16, !tbaa !18
  store ptr @.str.22, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 4), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef 1.000000e+02, i32 noundef 1)
          to label %63 unwind label %128

63:                                               ; preds = %62
  %64 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %65 unwind label %128

65:                                               ; preds = %63
  store double %64, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 5), align 16, !tbaa !18
  store ptr @.str.23, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 5), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %13, double noundef 1.000000e+00, i32 noundef 2)
          to label %66 unwind label %132

66:                                               ; preds = %65
  %67 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %68 unwind label %132

68:                                               ; preds = %66
  store double %67, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 6), align 16, !tbaa !18
  store ptr @.str.24, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 6), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %14, double noundef 1.000000e+01, i32 noundef 2)
          to label %69 unwind label %136

69:                                               ; preds = %68
  %70 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %71 unwind label %136

71:                                               ; preds = %69
  store double %70, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 7), align 16, !tbaa !18
  store ptr @.str.25, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 7), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %15, double noundef 1.000000e+02, i32 noundef 2)
          to label %72 unwind label %140

72:                                               ; preds = %71
  %73 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %74 unwind label %140

74:                                               ; preds = %72
  store double %73, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 8), align 16, !tbaa !18
  store ptr @.str.26, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 8), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %16, double noundef 1.000000e+00, i32 noundef 3)
          to label %75 unwind label %144

75:                                               ; preds = %74
  %76 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %77 unwind label %144

77:                                               ; preds = %75
  store double %76, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 9), align 16, !tbaa !18
  store ptr @.str.27, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 9), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef 1.000000e+01, i32 noundef 3)
          to label %78 unwind label %148

78:                                               ; preds = %77
  %79 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %80 unwind label %148

80:                                               ; preds = %78
  store double %79, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 10), align 16, !tbaa !18
  store ptr @.str.28, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 10), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef 1.000000e+02, i32 noundef 3)
          to label %81 unwind label %152

81:                                               ; preds = %80
  %82 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %83 unwind label %152

83:                                               ; preds = %81
  store double %82, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 11), align 16, !tbaa !18
  store ptr @.str.29, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 11), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %19, double noundef 1.000000e+00, i32 noundef 4)
          to label %84 unwind label %156

84:                                               ; preds = %83
  %85 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %86 unwind label %156

86:                                               ; preds = %84
  store double %85, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 12), align 16, !tbaa !18
  store ptr @.str.30, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 12), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %20, double noundef 1.000000e+01, i32 noundef 4)
          to label %87 unwind label %160

87:                                               ; preds = %86
  %88 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %89 unwind label %160

89:                                               ; preds = %87
  store double %88, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 13), align 16, !tbaa !18
  store ptr @.str.31, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 13), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef 1.000000e+02, i32 noundef 4)
          to label %90 unwind label %164

90:                                               ; preds = %89
  %91 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %92 unwind label %164

92:                                               ; preds = %90
  store double %91, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 14), align 16, !tbaa !18
  store ptr @.str.32, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 14), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %22, double noundef 1.000000e+00, i32 noundef 5)
          to label %93 unwind label %168

93:                                               ; preds = %92
  %94 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %95 unwind label %168

95:                                               ; preds = %93
  store double %94, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 15), align 16, !tbaa !18
  store ptr @.str.33, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 15), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %23, double noundef 1.000000e+01, i32 noundef 5)
          to label %96 unwind label %172

96:                                               ; preds = %95
  %97 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %98 unwind label %172

98:                                               ; preds = %96
  store double %97, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 16), align 16, !tbaa !18
  store ptr @.str.34, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 16), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %24, double noundef 1.000000e+02, i32 noundef 5)
          to label %99 unwind label %176

99:                                               ; preds = %98
  %100 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %101 unwind label %176

101:                                              ; preds = %99
  store double %100, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 17), align 16, !tbaa !18
  store ptr @.str.35, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr getelementptr inbounds (%struct.SC_TIMESCALE_TO_TEXT, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 17), i32 0, i32 1), align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @__cxa_guard_release(ptr @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #5
  br label %102

102:                                              ; preds = %101, %44, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !21
  br label %103

103:                                              ; preds = %216, %102
  %104 = load i32, ptr %25, align 4, !tbaa !21
  %105 = load i32, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE19timescale_to_text_n, align 4, !tbaa !21
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %197, label %107

107:                                              ; preds = %103
  store i32 2, ptr %26, align 4
  br label %219

108:                                              ; preds = %48, %47
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %6, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %7, align 4
  br label %196

112:                                              ; preds = %51, %50
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %6, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %7, align 4
  br label %195

116:                                              ; preds = %54, %53
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %6, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %7, align 4
  br label %194

120:                                              ; preds = %57, %56
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %6, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %7, align 4
  br label %193

124:                                              ; preds = %60, %59
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %6, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %7, align 4
  br label %192

128:                                              ; preds = %63, %62
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %6, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %7, align 4
  br label %191

132:                                              ; preds = %66, %65
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %6, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %7, align 4
  br label %190

136:                                              ; preds = %69, %68
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %6, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %7, align 4
  br label %189

140:                                              ; preds = %72, %71
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %6, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %7, align 4
  br label %188

144:                                              ; preds = %75, %74
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %6, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %7, align 4
  br label %187

148:                                              ; preds = %78, %77
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %6, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %7, align 4
  br label %186

152:                                              ; preds = %81, %80
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %6, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %7, align 4
  br label %185

156:                                              ; preds = %84, %83
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %6, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %7, align 4
  br label %184

160:                                              ; preds = %87, %86
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %6, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %7, align 4
  br label %183

164:                                              ; preds = %90, %89
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %6, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %7, align 4
  br label %182

168:                                              ; preds = %93, %92
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %6, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %7, align 4
  br label %181

172:                                              ; preds = %96, %95
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %6, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %7, align 4
  br label %180

176:                                              ; preds = %99, %98
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %6, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %180

180:                                              ; preds = %176, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %181

181:                                              ; preds = %180, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %182

182:                                              ; preds = %181, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %183

183:                                              ; preds = %182, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %184

184:                                              ; preds = %183, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %185

185:                                              ; preds = %184, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %186

186:                                              ; preds = %185, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %187

187:                                              ; preds = %186, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %188

188:                                              ; preds = %187, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %189

189:                                              ; preds = %188, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %190

190:                                              ; preds = %189, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %191

191:                                              ; preds = %190, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %192

192:                                              ; preds = %191, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %193

193:                                              ; preds = %192, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %194

194:                                              ; preds = %193, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %195

195:                                              ; preds = %194, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %196

196:                                              ; preds = %195, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @__cxa_guard_abort(ptr @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #5
  br label %318

197:                                              ; preds = %103
  %198 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 2
  %199 = load double, ptr %198, align 8, !tbaa !23
  %200 = load i32, ptr %25, align 4, !tbaa !21
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [18 x %struct.SC_TIMESCALE_TO_TEXT], ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.SC_TIMESCALE_TO_TEXT, ptr %202, i32 0, i32 0
  %204 = load double, ptr %203, align 16, !tbaa !18
  %205 = fcmp oeq double %199, %204
  br i1 %205, label %206, label %215

206:                                              ; preds = %197
  %207 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = load i32, ptr %25, align 4, !tbaa !21
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [18 x %struct.SC_TIMESCALE_TO_TEXT], ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 0, i64 %210
  %212 = getelementptr inbounds %struct.SC_TIMESCALE_TO_TEXT, ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !20
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.36, ptr noundef %213) #5
  store i32 2, ptr %26, align 4
  br label %219

215:                                              ; preds = %197
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %25, align 4, !tbaa !21
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %25, align 4, !tbaa !21
  br label %103, !llvm.loop !24

219:                                              ; preds = %206, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %220

220:                                              ; preds = %219
  %221 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = call i32 @fputs(ptr noundef @.str.37, ptr noundef %222)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !21
  br label %224

224:                                              ; preds = %247, %220
  %225 = load i32, ptr %27, align 4, !tbaa !21
  %226 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 4
  %227 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %226) #5
  %228 = trunc i64 %227 to i32
  %229 = icmp slt i32 %225, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %224
  store i32 5, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %250

231:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %232 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 4
  %233 = load i32, ptr %27, align 4, !tbaa !21
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7sc_core9vcd_traceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234) #5
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  store ptr %236, ptr %28, align 8, !tbaa !5
  %237 = load ptr, ptr %28, align 8, !tbaa !5
  %238 = load ptr, ptr %237, align 8, !tbaa !26
  %239 = getelementptr inbounds ptr, ptr %238, i64 1
  %240 = load ptr, ptr %239, align 8
  call void %240(ptr noundef nonnull align 8 dereferenceable(84) %237)
  %241 = load ptr, ptr %28, align 8, !tbaa !5
  %242 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %243 = load ptr, ptr %242, align 8, !tbaa !9
  %244 = load ptr, ptr %241, align 8, !tbaa !26
  %245 = getelementptr inbounds ptr, ptr %244, i64 3
  %246 = load ptr, ptr %245, align 8
  call void %246(ptr noundef nonnull align 8 dereferenceable(84) %241, ptr noundef %243)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %247

247:                                              ; preds = %231
  %248 = load i32, ptr %27, align 4, !tbaa !21
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %27, align 4, !tbaa !21
  br label %224, !llvm.loop !28

250:                                              ; preds = %230
  %251 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  %253 = call i32 @fputs(ptr noundef @.str.38, ptr noundef %252)
  %254 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %255 = load ptr, ptr %254, align 8, !tbaa !9
  %256 = call i32 @fputs(ptr noundef @.str.39, ptr noundef %255)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
  %258 = call noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %257)
  store double %258, ptr %29, align 8, !tbaa !29
  %259 = getelementptr inbounds [2000 x i8], ptr %3, i64 0, i64 0
  %260 = load double, ptr %29, align 8, !tbaa !29
  %261 = load double, ptr %29, align 8, !tbaa !29
  %262 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 2
  %263 = load double, ptr %262, align 8, !tbaa !23
  %264 = fdiv double %261, %263
  %265 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %259, ptr noundef @.str.40, double noundef %260, double noundef %264) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  %266 = getelementptr inbounds [2000 x i8], ptr %3, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef %266, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %267 unwind label %288

267:                                              ; preds = %250
  %268 = load ptr, ptr %33, align 8, !tbaa !26
  %269 = getelementptr inbounds ptr, ptr %268, i64 26
  %270 = load ptr, ptr %269, align 8
  invoke void %270(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %271 unwind label %292

271:                                              ; preds = %267
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  %272 = load double, ptr %29, align 8, !tbaa !29
  %273 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 2
  %274 = load double, ptr %273, align 8, !tbaa !23
  %275 = fdiv double %272, %274
  %276 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 3
  %277 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 2
  call void @_ZN7sc_core23double_to_special_int64EdPjS0_(double noundef %275, ptr noundef %276, ptr noundef %277)
  %278 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  %280 = call i32 @fputs(ptr noundef @.str.41, ptr noundef %279)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !21
  br label %281

281:                                              ; preds = %311, %271
  %282 = load i32, ptr %32, align 4, !tbaa !21
  %283 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 4
  %284 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %283) #5
  %285 = trunc i64 %284 to i32
  %286 = icmp slt i32 %282, %285
  br i1 %286, label %297, label %287

287:                                              ; preds = %281
  store i32 8, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %314

288:                                              ; preds = %250
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %6, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %7, align 4
  br label %296

292:                                              ; preds = %267
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %6, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br label %296

296:                                              ; preds = %292, %288
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %318

297:                                              ; preds = %281
  %298 = getelementptr inbounds %"class.sc_core::vcd_trace_file", ptr %33, i32 0, i32 4
  %299 = load i32, ptr %32, align 4, !tbaa !21
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7sc_core9vcd_traceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %298, i64 noundef %300) #5
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %304 = load ptr, ptr %303, align 8, !tbaa !9
  %305 = load ptr, ptr %302, align 8, !tbaa !26
  %306 = getelementptr inbounds ptr, ptr %305, i64 0
  %307 = load ptr, ptr %306, align 8
  call void %307(ptr noundef nonnull align 8 dereferenceable(84) %302, ptr noundef %304)
  %308 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %309 = load ptr, ptr %308, align 8, !tbaa !9
  %310 = call i32 @fputc(i32 noundef 10, ptr noundef %309)
  br label %311

311:                                              ; preds = %297
  %312 = load i32, ptr %32, align 4, !tbaa !21
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %32, align 4, !tbaa !21
  br label %281, !llvm.loop !30

314:                                              ; preds = %287
  %315 = getelementptr inbounds %"class.sc_core::sc_trace_file_base", ptr %33, i32 0, i32 1
  %316 = load ptr, ptr %315, align 8, !tbaa !9
  %317 = call i32 @fputs(ptr noundef @.str.42, ptr noundef %316)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 2000, ptr %3) #5
  ret void

318:                                              ; preds = %296, %196
  call void @llvm.lifetime.end.p0(i64 2000, ptr %3) #5
  br label %319

319:                                              ; preds = %318
  %320 = load ptr, ptr %6, align 8
  %321 = load i32, ptr %7, align 4
  %322 = insertvalue { ptr, i32 } poison, ptr %320, 0
  %323 = insertvalue { ptr, i32 } %322, i32 %321, 1
  resume { ptr, i32 } %323
}

declare void @_ZN7sc_core16localtime_stringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) #4

declare noundef ptr @_ZN7sc_core10sc_versionEv() #4

declare void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8), double noundef, i32 noundef) unnamed_addr #4

declare noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() #4

declare void @_ZN7sc_core23double_to_special_int64EdPjS0_(double noundef, ptr noundef, ptr noundef) #4

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

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

!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, !6, i64 8}
!10 = !{!"_ZTSN7sc_core18sc_trace_file_baseE", !11, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !14, i64 32, !13, i64 64, !13, i64 65}
!11 = !{!"_ZTSN7sc_core13sc_trace_fileE"}
!12 = !{!"double", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"branch_weights", i32 1, i32 1048575}
!18 = !{!19, !12, i64 0}
!19 = !{!"_ZTSZN7sc_core14vcd_trace_file13do_initializeEvE20SC_TIMESCALE_TO_TEXT", !12, i64 0, !6, i64 8}
!20 = !{!19, !6, i64 8}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!10, !12, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = distinct !{!28, !25}
!29 = !{!12, !12, i64 0}
!30 = distinct !{!30, !25}


; 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"

%struct.SC_TIMESCALE_TO_TEXT = type { double, 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.sc_core::sc_time" = type { i64 }
%"class.std::allocator" = type { i8 }

@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text = external hidden local_unnamed_addr global [18 x %struct.SC_TIMESCALE_TO_TEXT], align 16
@_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text = external hidden global i64, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZZN7sc_core14vcd_trace_file13do_initializeEvE19timescale_to_text_n = external hidden local_unnamed_addr global i32, align 4
@.str.36 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1

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 #0 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 #0 align 2

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fputc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core14vcd_trace_file13do_initializeEv(ptr noundef nonnull align 8 dereferenceable(104) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [2000 x i8], align 16
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.sc_core::sc_time", align 8
  %5 = alloca %"class.sc_core::sc_time", align 8
  %6 = alloca %"class.sc_core::sc_time", align 8
  %7 = alloca %"class.sc_core::sc_time", align 8
  %8 = alloca %"class.sc_core::sc_time", align 8
  %9 = alloca %"class.sc_core::sc_time", align 8
  %10 = alloca %"class.sc_core::sc_time", align 8
  %11 = alloca %"class.sc_core::sc_time", align 8
  %12 = alloca %"class.sc_core::sc_time", align 8
  %13 = alloca %"class.sc_core::sc_time", align 8
  %14 = alloca %"class.sc_core::sc_time", align 8
  %15 = alloca %"class.sc_core::sc_time", align 8
  %16 = alloca %"class.sc_core::sc_time", align 8
  %17 = alloca %"class.sc_core::sc_time", align 8
  %18 = alloca %"class.sc_core::sc_time", align 8
  %19 = alloca %"class.sc_core::sc_time", align 8
  %20 = alloca %"class.sc_core::sc_time", align 8
  %21 = alloca %"class.sc_core::sc_time", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %2) #6
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZN7sc_core16localtime_stringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3)
  %26 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.16, ptr noundef %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %28 = load ptr, ptr %24, align 8, !tbaa !5
  %29 = call noundef ptr @_ZN7sc_core10sc_versionEv()
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.17, ptr noundef %29) #6
  %31 = load atomic i8, ptr @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text acquire, align 8
  %32 = icmp eq i8 %31, 0
  br i1 %32, label %33, label %90, !prof !16

33:                                               ; preds = %1
  %34 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #6
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %90, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %4, double noundef 1.000000e+00, i32 noundef 0)
          to label %36 unwind label %96

36:                                               ; preds = %35
  %37 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %38 unwind label %96

38:                                               ; preds = %36
  store double %37, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, align 16, !tbaa !17
  store ptr @.str.18, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 8), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef 1.000000e+01, i32 noundef 0)
          to label %39 unwind label %98

39:                                               ; preds = %38
  %40 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %41 unwind label %98

41:                                               ; preds = %39
  store double %40, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 16), align 16, !tbaa !17
  store ptr @.str.19, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 24), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef 1.000000e+02, i32 noundef 0)
          to label %42 unwind label %100

42:                                               ; preds = %41
  %43 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %44 unwind label %100

44:                                               ; preds = %42
  store double %43, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 32), align 16, !tbaa !17
  store ptr @.str.20, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 40), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %7, double noundef 1.000000e+00, i32 noundef 1)
          to label %45 unwind label %102

45:                                               ; preds = %44
  %46 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %47 unwind label %102

47:                                               ; preds = %45
  store double %46, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 48), align 16, !tbaa !17
  store ptr @.str.21, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 56), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %8, double noundef 1.000000e+01, i32 noundef 1)
          to label %48 unwind label %104

48:                                               ; preds = %47
  %49 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %50 unwind label %104

50:                                               ; preds = %48
  store double %49, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 64), align 16, !tbaa !17
  store ptr @.str.22, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 72), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %9, double noundef 1.000000e+02, i32 noundef 1)
          to label %51 unwind label %106

51:                                               ; preds = %50
  %52 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %53 unwind label %106

53:                                               ; preds = %51
  store double %52, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 80), align 16, !tbaa !17
  store ptr @.str.23, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 88), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef 1.000000e+00, i32 noundef 2)
          to label %54 unwind label %108

54:                                               ; preds = %53
  %55 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %56 unwind label %108

56:                                               ; preds = %54
  store double %55, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 96), align 16, !tbaa !17
  store ptr @.str.24, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 104), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %11, double noundef 1.000000e+01, i32 noundef 2)
          to label %57 unwind label %110

57:                                               ; preds = %56
  %58 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %59 unwind label %110

59:                                               ; preds = %57
  store double %58, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 112), align 16, !tbaa !17
  store ptr @.str.25, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 120), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef 1.000000e+02, i32 noundef 2)
          to label %60 unwind label %112

60:                                               ; preds = %59
  %61 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %62 unwind label %112

62:                                               ; preds = %60
  store double %61, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 128), align 16, !tbaa !17
  store ptr @.str.26, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 136), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %13, double noundef 1.000000e+00, i32 noundef 3)
          to label %63 unwind label %114

63:                                               ; preds = %62
  %64 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %65 unwind label %114

65:                                               ; preds = %63
  store double %64, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 144), align 16, !tbaa !17
  store ptr @.str.27, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 152), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %14, double noundef 1.000000e+01, i32 noundef 3)
          to label %66 unwind label %116

66:                                               ; preds = %65
  %67 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %68 unwind label %116

68:                                               ; preds = %66
  store double %67, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 160), align 16, !tbaa !17
  store ptr @.str.28, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 168), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %15, double noundef 1.000000e+02, i32 noundef 3)
          to label %69 unwind label %118

69:                                               ; preds = %68
  %70 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %71 unwind label %118

71:                                               ; preds = %69
  store double %70, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 176), align 16, !tbaa !17
  store ptr @.str.29, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 184), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %16, double noundef 1.000000e+00, i32 noundef 4)
          to label %72 unwind label %120

72:                                               ; preds = %71
  %73 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %74 unwind label %120

74:                                               ; preds = %72
  store double %73, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 192), align 16, !tbaa !17
  store ptr @.str.30, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 200), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef 1.000000e+01, i32 noundef 4)
          to label %75 unwind label %122

75:                                               ; preds = %74
  %76 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %77 unwind label %122

77:                                               ; preds = %75
  store double %76, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 208), align 16, !tbaa !17
  store ptr @.str.31, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 216), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef 1.000000e+02, i32 noundef 4)
          to label %78 unwind label %124

78:                                               ; preds = %77
  %79 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %80 unwind label %124

80:                                               ; preds = %78
  store double %79, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 224), align 16, !tbaa !17
  store ptr @.str.32, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 232), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %19, double noundef 1.000000e+00, i32 noundef 5)
          to label %81 unwind label %126

81:                                               ; preds = %80
  %82 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %83 unwind label %126

83:                                               ; preds = %81
  store double %82, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 240), align 16, !tbaa !17
  store ptr @.str.33, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 248), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %20, double noundef 1.000000e+01, i32 noundef 5)
          to label %84 unwind label %128

84:                                               ; preds = %83
  %85 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %86 unwind label %128

86:                                               ; preds = %84
  store double %85, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 256), align 16, !tbaa !17
  store ptr @.str.34, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 264), align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef 1.000000e+02, i32 noundef 5)
          to label %87 unwind label %130

87:                                               ; preds = %86
  %88 = invoke noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %89 unwind label %130

89:                                               ; preds = %87
  store double %88, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 272), align 16, !tbaa !17
  store ptr @.str.35, ptr getelementptr inbounds (i8, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 280), align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #6
  br label %90

90:                                               ; preds = %89, %33, %1
  %91 = load i32, ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE19timescale_to_text_n, align 4, !tbaa !20
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %90
  %93 = getelementptr inbounds i8, ptr %0, i64 16
  %94 = load double, ptr %93, align 8, !tbaa !22
  %wide.trip.count = zext nneg i32 %91 to i64
  br label %149

95:                                               ; preds = %149
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %149, !llvm.loop !23

96:                                               ; preds = %36, %35
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %148

98:                                               ; preds = %39, %38
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %147

100:                                              ; preds = %42, %41
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %146

102:                                              ; preds = %45, %44
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %145

104:                                              ; preds = %48, %47
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %144

106:                                              ; preds = %51, %50
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %143

108:                                              ; preds = %54, %53
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %142

110:                                              ; preds = %57, %56
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %141

112:                                              ; preds = %60, %59
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %140

114:                                              ; preds = %63, %62
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %139

116:                                              ; preds = %66, %65
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %138

118:                                              ; preds = %69, %68
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %137

120:                                              ; preds = %72, %71
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %136

122:                                              ; preds = %75, %74
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %135

124:                                              ; preds = %78, %77
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %134

126:                                              ; preds = %81, %80
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %133

128:                                              ; preds = %84, %83
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %87, %86
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %132

132:                                              ; preds = %130, %128
  %.pn = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %133

133:                                              ; preds = %132, %126
  %.pn.pn = phi { ptr, i32 } [ %.pn, %132 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %134

134:                                              ; preds = %133, %124
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %133 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %135

135:                                              ; preds = %134, %122
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %134 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %136

136:                                              ; preds = %135, %120
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %135 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %137

137:                                              ; preds = %136, %118
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %136 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %138

138:                                              ; preds = %137, %116
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %137 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %139

139:                                              ; preds = %138, %114
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %138 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %140

140:                                              ; preds = %139, %112
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %139 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %141

141:                                              ; preds = %140, %110
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %140 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %142

142:                                              ; preds = %141, %108
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %141 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %143

143:                                              ; preds = %142, %106
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %142 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %144

144:                                              ; preds = %143, %104
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %143 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %145

145:                                              ; preds = %144, %102
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %144 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %146

146:                                              ; preds = %145, %100
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %145 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %147

147:                                              ; preds = %146, %98
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %146 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %148

148:                                              ; preds = %147, %96
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %147 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text) #6
  br label %217

149:                                              ; preds = %.lr.ph, %95
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %95 ]
  %150 = getelementptr inbounds [18 x %struct.SC_TIMESCALE_TO_TEXT], ptr @_ZZN7sc_core14vcd_trace_file13do_initializeEvE17timescale_to_text, i64 0, i64 %indvars.iv
  %151 = load double, ptr %150, align 16, !tbaa !17
  %152 = fcmp oeq double %94, %151
  br i1 %152, label %153, label %95

153:                                              ; preds = %149
  %154 = load ptr, ptr %24, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %150, i64 8
  %156 = load ptr, ptr %155, align 8, !tbaa !19
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef nonnull @.str.36, ptr noundef %156) #6
  br label %.loopexit

.loopexit:                                        ; preds = %95, %90, %153
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  %159 = call i32 @fputs(ptr noundef nonnull @.str.37, ptr noundef %158)
  %160 = getelementptr inbounds i8, ptr %0, i64 80
  %161 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %162 = trunc i64 %161 to i32
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %.lr.ph62, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph62, %.loopexit
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = call i32 @fputs(ptr noundef nonnull @.str.38, ptr noundef %164)
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  %167 = call i32 @fputs(ptr noundef nonnull @.str.39, ptr noundef %166)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
  %169 = call noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %168)
  %170 = getelementptr inbounds i8, ptr %0, i64 16
  %171 = load double, ptr %170, align 8, !tbaa !22
  %172 = fdiv double %169, %171
  %173 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.40, double noundef %169, double noundef %172) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull %2, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %186 unwind label %202

.lr.ph62:                                         ; preds = %.loopexit, %.lr.ph62
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph62 ], [ 0, %.loopexit ]
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7sc_core9vcd_traceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %indvars.iv69) #6
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  %177 = getelementptr inbounds i8, ptr %176, i64 8
  %178 = load ptr, ptr %177, align 8
  call void %178(ptr noundef nonnull align 8 dereferenceable(84) %175)
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = load ptr, ptr %175, align 8, !tbaa !26
  %181 = getelementptr inbounds i8, ptr %180, i64 24
  %182 = load ptr, ptr %181, align 8
  call void %182(ptr noundef nonnull align 8 dereferenceable(84) %175, ptr noundef %179)
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %183 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %sext = shl i64 %183, 32
  %184 = ashr exact i64 %sext, 32
  %185 = icmp slt i64 %indvars.iv.next70, %184
  br i1 %185, label %.lr.ph62, label %._crit_edge, !llvm.loop !28

186:                                              ; preds = %._crit_edge
  %187 = load ptr, ptr %0, align 8, !tbaa !26
  %188 = getelementptr inbounds i8, ptr %187, i64 208
  %189 = load ptr, ptr %188, align 8
  invoke void %189(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %190 unwind label %204

190:                                              ; preds = %186
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  %191 = load double, ptr %170, align 8, !tbaa !22
  %192 = fdiv double %169, %191
  %193 = getelementptr inbounds i8, ptr %0, i64 76
  %194 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZN7sc_core23double_to_special_int64EdPjS0_(double noundef %192, ptr noundef nonnull %193, ptr noundef nonnull %194)
  %195 = load ptr, ptr %24, align 8, !tbaa !5
  %196 = call i32 @fputs(ptr noundef nonnull @.str.41, ptr noundef %195)
  %197 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %198 = trunc i64 %197 to i32
  %199 = icmp sgt i32 %198, 0
  br i1 %199, label %.lr.ph65, label %._crit_edge66

._crit_edge66:                                    ; preds = %.lr.ph65, %190
  %200 = load ptr, ptr %24, align 8, !tbaa !5
  %201 = call i32 @fputs(ptr noundef nonnull @.str.42, ptr noundef %200)
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %2) #6
  ret void

202:                                              ; preds = %._crit_edge
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %206

204:                                              ; preds = %186
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %206

206:                                              ; preds = %204, %202
  %.pn56 = phi { ptr, i32 } [ %205, %204 ], [ %203, %202 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  br label %217

.lr.ph65:                                         ; preds = %190, %.lr.ph65
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph65 ], [ 0, %190 ]
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7sc_core9vcd_traceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %indvars.iv72) #6
  %208 = load ptr, ptr %207, align 8, !tbaa !25
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = load ptr, ptr %208, align 8, !tbaa !26
  %211 = load ptr, ptr %210, align 8
  call void %211(ptr noundef nonnull align 8 dereferenceable(84) %208, ptr noundef %209)
  %212 = load ptr, ptr %24, align 8, !tbaa !5
  %213 = call i32 @fputc(i32 noundef 10, ptr noundef %212)
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %214 = call noundef i64 @_ZNKSt6vectorIPN7sc_core9vcd_traceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %sext75 = shl i64 %214, 32
  %215 = ashr exact i64 %sext75, 32
  %216 = icmp slt i64 %indvars.iv.next73, %215
  br i1 %216, label %.lr.ph65, label %._crit_edge66, !llvm.loop !29

217:                                              ; preds = %206, %148
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %206 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %148 ]
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn56.pn
}

declare void @_ZN7sc_core16localtime_stringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #5

declare noundef ptr @_ZN7sc_core10sc_versionEv() local_unnamed_addr #5

declare void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8), double noundef, i32 noundef) unnamed_addr #5

declare noundef double @_ZNK7sc_core7sc_time10to_secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() local_unnamed_addr #5

declare void @_ZN7sc_core23double_to_special_int64EdPjS0_(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nofree nounwind }
attributes #5 = { "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, !8, i64 8}
!6 = !{!"_ZTSN7sc_core18sc_trace_file_baseE", !7, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !12, i64 64, !12, i64 65}
!7 = !{!"_ZTSN7sc_core13sc_trace_fileE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !9, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"branch_weights", i32 1, i32 1048575}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTSZN7sc_core14vcd_trace_file13do_initializeEvE20SC_TIMESCALE_TO_TEXT", !11, i64 0, !8, i64 8}
!19 = !{!18, !8, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !9, i64 0}
!22 = !{!6, !11, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!8, !8, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !10, i64 0}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}


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