; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/stars/star106015/star106015.ll (ZN6memory5entryEv)

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

%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%struct.memory = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in.13", %"class.sc_core::sc_in", %"class.sc_core::sc_out" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in.13" = type { %"class.sc_core::sc_port.14", ptr, ptr }
%"class.sc_core::sc_port.14" = type { %"class.sc_core::sc_port_b.15" }
%"class.sc_core::sc_port_b.15" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.16" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<8>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.21", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.21" = type { %"class.sc_core::sc_port_b.22" }
%"class.sc_core::sc_port_b.22" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.23" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6memory5entryEv(ptr noundef nonnull align 8 dereferenceable(960) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca [128 x %"class.sc_dt::sc_uint"], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [128 x %"class.sc_dt::sc_uint"], align 16
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 3072, ptr %4) #3
  %11 = getelementptr inbounds [128 x %"class.sc_dt::sc_uint"], ptr %4, i32 0, i32 0
  %12 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %11, i64 128
  br label %13

13:                                               ; preds = %15, %1
  %14 = phi ptr [ %11, %1 ], [ %16, %15 ]
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %15 unwind label %45

15:                                               ; preds = %13
  %16 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %14, i64 1
  %17 = icmp eq ptr %16, %12
  br i1 %17, label %18, label %13

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 3072, ptr %7) #3
  %19 = getelementptr inbounds [128 x %"class.sc_dt::sc_uint"], ptr %7, i32 0, i32 0
  %20 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %19, i64 128
  br label %21

21:                                               ; preds = %23, %18
  %22 = phi ptr [ %19, %18 ], [ %24, %23 ]
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %23 unwind label %55

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %22, i64 1
  %25 = icmp eq ptr %24, %20
  br i1 %25, label %26, label %21

26:                                               ; preds = %23
  %27 = getelementptr inbounds %struct.memory, ptr %10, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  store i8 0, ptr %8, align 1, !tbaa !9
  invoke void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192) %27, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %28 unwind label %65

28:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
          to label %29 unwind label %69

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %77, %29
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %44, %31
  %33 = getelementptr inbounds %struct.memory, ptr %10, i32 0, i32 3
  %34 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
          to label %35 unwind label %69

35:                                               ; preds = %32
  %36 = load i8, ptr %34, align 1, !tbaa !9, !range !11, !noundef !12
  %37 = trunc i8 %36 to i1
  %38 = zext i1 %37 to i32
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %73

40:                                               ; preds = %35
  %41 = getelementptr inbounds [128 x %"class.sc_dt::sc_uint"], ptr %4, i64 0, i64 1
  %42 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %41, i32 noundef 1)
          to label %43 unwind label %69

43:                                               ; preds = %40
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
          to label %44 unwind label %69

44:                                               ; preds = %43
  br label %32, !llvm.loop !13

45:                                               ; preds = %13
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  %49 = icmp eq ptr %11, %14
  br i1 %49, label %54, label %50

50:                                               ; preds = %50, %45
  %51 = phi ptr [ %14, %45 ], [ %52, %50 ]
  %52 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %51, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #3
  %53 = icmp eq ptr %52, %11
  br i1 %53, label %54, label %50

54:                                               ; preds = %50, %45
  br label %98

55:                                               ; preds = %21
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  %59 = icmp eq ptr %19, %22
  br i1 %59, label %64, label %60

60:                                               ; preds = %60, %55
  %61 = phi ptr [ %22, %55 ], [ %62, %60 ]
  %62 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %61, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #3
  %63 = icmp eq ptr %62, %19
  br i1 %63, label %64, label %60

64:                                               ; preds = %60, %55
  br label %90

65:                                               ; preds = %26
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %82

69:                                               ; preds = %76, %73, %43, %40, %32, %28
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  br label %82

73:                                               ; preds = %35
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
          to label %74 unwind label %69

74:                                               ; preds = %73
  %75 = getelementptr inbounds %struct.memory, ptr %10, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  store i8 1, ptr %9, align 1, !tbaa !9
  invoke void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192) %75, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %76 unwind label %78

76:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
          to label %77 unwind label %69

77:                                               ; preds = %76
  br label %30, !llvm.loop !15

78:                                               ; preds = %74
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %5, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  br label %82

82:                                               ; preds = %78, %69, %65
  %83 = getelementptr inbounds [128 x %"class.sc_dt::sc_uint"], ptr %7, i32 0, i32 0
  %84 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %83, i64 128
  br label %85

85:                                               ; preds = %85, %82
  %86 = phi ptr [ %84, %82 ], [ %87, %85 ]
  %87 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %86, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #3
  %88 = icmp eq ptr %87, %83
  br i1 %88, label %89, label %85

89:                                               ; preds = %85
  br label %90

90:                                               ; preds = %89, %64
  call void @llvm.lifetime.end.p0(i64 3072, ptr %7) #3
  %91 = getelementptr inbounds [128 x %"class.sc_dt::sc_uint"], ptr %4, i32 0, i32 0
  %92 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %91, i64 128
  br label %93

93:                                               ; preds = %93, %90
  %94 = phi ptr [ %92, %90 ], [ %95, %93 ]
  %95 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %94, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %95) #3
  %96 = icmp eq ptr %95, %91
  br i1 %96, label %97, label %93

97:                                               ; preds = %93
  br label %98

98:                                               ; preds = %97, %54
  call void @llvm.lifetime.end.p0(i64 3072, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %5, align 8
  %101 = load i32, ptr %6, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 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 uwtable
declare dso_local void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind }

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

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


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

%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN6memory5entryEv(ptr noundef nonnull align 8 dereferenceable(960) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [128 x %"class.sc_dt::sc_uint"], align 16
  %3 = alloca [128 x %"class.sc_dt::sc_uint"], align 16
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 3072, ptr nonnull %2) #4
  br label %6

6:                                                ; preds = %7, %1
  %.idx = phi i64 [ 0, %1 ], [ %.add, %7 ]
  %.ptr = getelementptr inbounds i8, ptr %2, i64 %.idx
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr)
          to label %7 unwind label %26

7:                                                ; preds = %6
  %.add = add nuw nsw i64 %.idx, 24
  %8 = icmp eq i64 %.add, 3072
  br i1 %8, label %9, label %6

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 3072, ptr nonnull %3) #4
  br label %10

10:                                               ; preds = %11, %9
  %.idx12 = phi i64 [ 0, %9 ], [ %.add13, %11 ]
  %.ptr14 = getelementptr inbounds i8, ptr %3, i64 %.idx12
  invoke void @_ZN5sc_dt7sc_uintILi8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr14)
          to label %11 unwind label %32

11:                                               ; preds = %10
  %.add13 = add nuw nsw i64 %.idx12, 24
  %12 = icmp eq i64 %.add13, 3072
  br i1 %12, label %13, label %10

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 768
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  store i8 0, ptr %4, align 1, !tbaa !5
  invoke void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192) %14, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %15 unwind label %38

15:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader:                                       ; preds = %15
  %16 = getelementptr inbounds i8, ptr %0, i64 584
  %17 = getelementptr inbounds i8, ptr %2, i64 24
  br label %18

18:                                               ; preds = %.backedge, %.preheader
  %19 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %16)
          to label %20 unwind label %.loopexit20

20:                                               ; preds = %18
  %21 = load i8, ptr %19, align 1, !tbaa !5, !range !9, !noundef !10
  %22 = icmp eq i8 %21, 0
  br i1 %22, label %23, label %40

23:                                               ; preds = %20
  %24 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi8EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 1)
          to label %25 unwind label %.loopexit20

25:                                               ; preds = %23
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.backedge unwind label %.loopexit20

.backedge:                                        ; preds = %25, %42
  br label %18, !llvm.loop !11

26:                                               ; preds = %6
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = icmp eq i64 %.idx, 0
  br i1 %28, label %.loopexit, label %.preheader26

.preheader26:                                     ; preds = %26, %.preheader26
  %29 = phi ptr [ %30, %.preheader26 ], [ %.ptr, %26 ]
  %30 = getelementptr inbounds i8, ptr %29, i64 -24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  %31 = icmp eq ptr %30, %2
  br i1 %31, label %.loopexit, label %.preheader26

32:                                               ; preds = %10
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = icmp eq i64 %.idx12, 0
  br i1 %34, label %.loopexit19, label %.preheader24

.preheader24:                                     ; preds = %32, %.preheader24
  %35 = phi ptr [ %36, %.preheader24 ], [ %.ptr14, %32 ]
  %36 = getelementptr inbounds i8, ptr %35, i64 -24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  %37 = icmp eq ptr %36, %3
  br i1 %37, label %.loopexit19, label %.preheader24

38:                                               ; preds = %13
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %.loopexit.split-lp

.loopexit20:                                      ; preds = %18, %23, %25
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %42, %40
  %lpad.loopexit21 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %15
  %lpad.loopexit.split-lp22 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

40:                                               ; preds = %20
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %41 unwind label %.loopexit.split-lp.loopexit

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  store i8 1, ptr %5, align 1, !tbaa !5
  invoke void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192) %14, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %42 unwind label %43

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit

43:                                               ; preds = %41
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit20, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %43, %38
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %39, %38 ], [ %lpad.loopexit, %.loopexit20 ], [ %lpad.loopexit21, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp22, %.loopexit.split-lp.loopexit.split-lp ]
  %45 = getelementptr inbounds i8, ptr %3, i64 3048
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #4
  %46 = getelementptr inbounds i8, ptr %3, i64 3024
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #4
  %47 = getelementptr inbounds i8, ptr %3, i64 3000
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #4
  %48 = getelementptr inbounds i8, ptr %3, i64 2976
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #4
  %49 = getelementptr inbounds i8, ptr %3, i64 2952
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #4
  %50 = getelementptr inbounds i8, ptr %3, i64 2928
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
  %51 = getelementptr inbounds i8, ptr %3, i64 2904
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  %52 = getelementptr inbounds i8, ptr %3, i64 2880
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #4
  %53 = getelementptr inbounds i8, ptr %3, i64 2856
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #4
  %54 = getelementptr inbounds i8, ptr %3, i64 2832
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #4
  %55 = getelementptr inbounds i8, ptr %3, i64 2808
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #4
  %56 = getelementptr inbounds i8, ptr %3, i64 2784
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #4
  %57 = getelementptr inbounds i8, ptr %3, i64 2760
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #4
  %58 = getelementptr inbounds i8, ptr %3, i64 2736
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #4
  %59 = getelementptr inbounds i8, ptr %3, i64 2712
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %59) #4
  %60 = getelementptr inbounds i8, ptr %3, i64 2688
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #4
  %61 = getelementptr inbounds i8, ptr %3, i64 2664
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
  %62 = getelementptr inbounds i8, ptr %3, i64 2640
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #4
  %63 = getelementptr inbounds i8, ptr %3, i64 2616
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #4
  %64 = getelementptr inbounds i8, ptr %3, i64 2592
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %64) #4
  %65 = getelementptr inbounds i8, ptr %3, i64 2568
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #4
  %66 = getelementptr inbounds i8, ptr %3, i64 2544
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #4
  %67 = getelementptr inbounds i8, ptr %3, i64 2520
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %67) #4
  %68 = getelementptr inbounds i8, ptr %3, i64 2496
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #4
  %69 = getelementptr inbounds i8, ptr %3, i64 2472
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #4
  %70 = getelementptr inbounds i8, ptr %3, i64 2448
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %70) #4
  %71 = getelementptr inbounds i8, ptr %3, i64 2424
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #4
  %72 = getelementptr inbounds i8, ptr %3, i64 2400
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %72) #4
  %73 = getelementptr inbounds i8, ptr %3, i64 2376
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %73) #4
  %74 = getelementptr inbounds i8, ptr %3, i64 2352
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %74) #4
  %75 = getelementptr inbounds i8, ptr %3, i64 2328
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  %76 = getelementptr inbounds i8, ptr %3, i64 2304
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #4
  %77 = getelementptr inbounds i8, ptr %3, i64 2280
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #4
  %78 = getelementptr inbounds i8, ptr %3, i64 2256
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %78) #4
  %79 = getelementptr inbounds i8, ptr %3, i64 2232
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #4
  %80 = getelementptr inbounds i8, ptr %3, i64 2208
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %80) #4
  %81 = getelementptr inbounds i8, ptr %3, i64 2184
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %81) #4
  %82 = getelementptr inbounds i8, ptr %3, i64 2160
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %82) #4
  %83 = getelementptr inbounds i8, ptr %3, i64 2136
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %83) #4
  %84 = getelementptr inbounds i8, ptr %3, i64 2112
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %84) #4
  %85 = getelementptr inbounds i8, ptr %3, i64 2088
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %85) #4
  %86 = getelementptr inbounds i8, ptr %3, i64 2064
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %86) #4
  %87 = getelementptr inbounds i8, ptr %3, i64 2040
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #4
  %88 = getelementptr inbounds i8, ptr %3, i64 2016
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %88) #4
  %89 = getelementptr inbounds i8, ptr %3, i64 1992
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %89) #4
  %90 = getelementptr inbounds i8, ptr %3, i64 1968
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #4
  %91 = getelementptr inbounds i8, ptr %3, i64 1944
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %91) #4
  %92 = getelementptr inbounds i8, ptr %3, i64 1920
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %92) #4
  %93 = getelementptr inbounds i8, ptr %3, i64 1896
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %93) #4
  %94 = getelementptr inbounds i8, ptr %3, i64 1872
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %94) #4
  %95 = getelementptr inbounds i8, ptr %3, i64 1848
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %95) #4
  %96 = getelementptr inbounds i8, ptr %3, i64 1824
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %96) #4
  %97 = getelementptr inbounds i8, ptr %3, i64 1800
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %97) #4
  %98 = getelementptr inbounds i8, ptr %3, i64 1776
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %98) #4
  %99 = getelementptr inbounds i8, ptr %3, i64 1752
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %99) #4
  %100 = getelementptr inbounds i8, ptr %3, i64 1728
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %100) #4
  %101 = getelementptr inbounds i8, ptr %3, i64 1704
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %101) #4
  %102 = getelementptr inbounds i8, ptr %3, i64 1680
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %102) #4
  %103 = getelementptr inbounds i8, ptr %3, i64 1656
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %103) #4
  %104 = getelementptr inbounds i8, ptr %3, i64 1632
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %104) #4
  %105 = getelementptr inbounds i8, ptr %3, i64 1608
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %105) #4
  %106 = getelementptr inbounds i8, ptr %3, i64 1584
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %106) #4
  %107 = getelementptr inbounds i8, ptr %3, i64 1560
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %107) #4
  %108 = getelementptr inbounds i8, ptr %3, i64 1536
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %108) #4
  %109 = getelementptr inbounds i8, ptr %3, i64 1512
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %109) #4
  %110 = getelementptr inbounds i8, ptr %3, i64 1488
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %110) #4
  %111 = getelementptr inbounds i8, ptr %3, i64 1464
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %111) #4
  %112 = getelementptr inbounds i8, ptr %3, i64 1440
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %112) #4
  %113 = getelementptr inbounds i8, ptr %3, i64 1416
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %113) #4
  %114 = getelementptr inbounds i8, ptr %3, i64 1392
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %114) #4
  %115 = getelementptr inbounds i8, ptr %3, i64 1368
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %115) #4
  %116 = getelementptr inbounds i8, ptr %3, i64 1344
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %116) #4
  %117 = getelementptr inbounds i8, ptr %3, i64 1320
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %117) #4
  %118 = getelementptr inbounds i8, ptr %3, i64 1296
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %118) #4
  %119 = getelementptr inbounds i8, ptr %3, i64 1272
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %119) #4
  %120 = getelementptr inbounds i8, ptr %3, i64 1248
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #4
  %121 = getelementptr inbounds i8, ptr %3, i64 1224
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #4
  %122 = getelementptr inbounds i8, ptr %3, i64 1200
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #4
  %123 = getelementptr inbounds i8, ptr %3, i64 1176
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #4
  %124 = getelementptr inbounds i8, ptr %3, i64 1152
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #4
  %125 = getelementptr inbounds i8, ptr %3, i64 1128
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #4
  %126 = getelementptr inbounds i8, ptr %3, i64 1104
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %126) #4
  %127 = getelementptr inbounds i8, ptr %3, i64 1080
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %127) #4
  %128 = getelementptr inbounds i8, ptr %3, i64 1056
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %128) #4
  %129 = getelementptr inbounds i8, ptr %3, i64 1032
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %129) #4
  %130 = getelementptr inbounds i8, ptr %3, i64 1008
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %130) #4
  %131 = getelementptr inbounds i8, ptr %3, i64 984
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %131) #4
  %132 = getelementptr inbounds i8, ptr %3, i64 960
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %132) #4
  %133 = getelementptr inbounds i8, ptr %3, i64 936
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %133) #4
  %134 = getelementptr inbounds i8, ptr %3, i64 912
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %134) #4
  %135 = getelementptr inbounds i8, ptr %3, i64 888
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %135) #4
  %136 = getelementptr inbounds i8, ptr %3, i64 864
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %136) #4
  %137 = getelementptr inbounds i8, ptr %3, i64 840
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %137) #4
  %138 = getelementptr inbounds i8, ptr %3, i64 816
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %138) #4
  %139 = getelementptr inbounds i8, ptr %3, i64 792
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %139) #4
  %140 = getelementptr inbounds i8, ptr %3, i64 768
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %140) #4
  %141 = getelementptr inbounds i8, ptr %3, i64 744
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %141) #4
  %142 = getelementptr inbounds i8, ptr %3, i64 720
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %142) #4
  %143 = getelementptr inbounds i8, ptr %3, i64 696
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %143) #4
  %144 = getelementptr inbounds i8, ptr %3, i64 672
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %144) #4
  %145 = getelementptr inbounds i8, ptr %3, i64 648
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %145) #4
  %146 = getelementptr inbounds i8, ptr %3, i64 624
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #4
  %147 = getelementptr inbounds i8, ptr %3, i64 600
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %147) #4
  %148 = getelementptr inbounds i8, ptr %3, i64 576
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %148) #4
  %149 = getelementptr inbounds i8, ptr %3, i64 552
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %149) #4
  %150 = getelementptr inbounds i8, ptr %3, i64 528
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %150) #4
  %151 = getelementptr inbounds i8, ptr %3, i64 504
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %151) #4
  %152 = getelementptr inbounds i8, ptr %3, i64 480
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %152) #4
  %153 = getelementptr inbounds i8, ptr %3, i64 456
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %153) #4
  %154 = getelementptr inbounds i8, ptr %3, i64 432
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %154) #4
  %155 = getelementptr inbounds i8, ptr %3, i64 408
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #4
  %156 = getelementptr inbounds i8, ptr %3, i64 384
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #4
  %157 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #4
  %158 = getelementptr inbounds i8, ptr %3, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #4
  %159 = getelementptr inbounds i8, ptr %3, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #4
  %160 = getelementptr inbounds i8, ptr %3, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #4
  %161 = getelementptr inbounds i8, ptr %3, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %161) #4
  %162 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %162) #4
  %163 = getelementptr inbounds i8, ptr %3, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %163) #4
  %164 = getelementptr inbounds i8, ptr %3, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %164) #4
  %165 = getelementptr inbounds i8, ptr %3, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #4
  %166 = getelementptr inbounds i8, ptr %3, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %166) #4
  %167 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %167) #4
  %168 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #4
  %169 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %169) #4
  %170 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %170) #4
  %171 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %171) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %.loopexit19

.loopexit19:                                      ; preds = %.preheader24, %.loopexit.split-lp, %32
  %.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %.pn, %.loopexit.split-lp ], [ %33, %.preheader24 ]
  call void @llvm.lifetime.end.p0(i64 3072, ptr nonnull %3) #4
  %172 = getelementptr inbounds i8, ptr %2, i64 3048
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #4
  %173 = getelementptr inbounds i8, ptr %2, i64 3024
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %173) #4
  %174 = getelementptr inbounds i8, ptr %2, i64 3000
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #4
  %175 = getelementptr inbounds i8, ptr %2, i64 2976
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %175) #4
  %176 = getelementptr inbounds i8, ptr %2, i64 2952
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #4
  %177 = getelementptr inbounds i8, ptr %2, i64 2928
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  %178 = getelementptr inbounds i8, ptr %2, i64 2904
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %178) #4
  %179 = getelementptr inbounds i8, ptr %2, i64 2880
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %179) #4
  %180 = getelementptr inbounds i8, ptr %2, i64 2856
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #4
  %181 = getelementptr inbounds i8, ptr %2, i64 2832
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #4
  %182 = getelementptr inbounds i8, ptr %2, i64 2808
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %182) #4
  %183 = getelementptr inbounds i8, ptr %2, i64 2784
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #4
  %184 = getelementptr inbounds i8, ptr %2, i64 2760
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #4
  %185 = getelementptr inbounds i8, ptr %2, i64 2736
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #4
  %186 = getelementptr inbounds i8, ptr %2, i64 2712
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %186) #4
  %187 = getelementptr inbounds i8, ptr %2, i64 2688
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %187) #4
  %188 = getelementptr inbounds i8, ptr %2, i64 2664
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %188) #4
  %189 = getelementptr inbounds i8, ptr %2, i64 2640
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %189) #4
  %190 = getelementptr inbounds i8, ptr %2, i64 2616
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %190) #4
  %191 = getelementptr inbounds i8, ptr %2, i64 2592
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %191) #4
  %192 = getelementptr inbounds i8, ptr %2, i64 2568
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %192) #4
  %193 = getelementptr inbounds i8, ptr %2, i64 2544
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %193) #4
  %194 = getelementptr inbounds i8, ptr %2, i64 2520
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %194) #4
  %195 = getelementptr inbounds i8, ptr %2, i64 2496
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %195) #4
  %196 = getelementptr inbounds i8, ptr %2, i64 2472
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %196) #4
  %197 = getelementptr inbounds i8, ptr %2, i64 2448
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %197) #4
  %198 = getelementptr inbounds i8, ptr %2, i64 2424
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %198) #4
  %199 = getelementptr inbounds i8, ptr %2, i64 2400
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %199) #4
  %200 = getelementptr inbounds i8, ptr %2, i64 2376
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %200) #4
  %201 = getelementptr inbounds i8, ptr %2, i64 2352
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %201) #4
  %202 = getelementptr inbounds i8, ptr %2, i64 2328
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %202) #4
  %203 = getelementptr inbounds i8, ptr %2, i64 2304
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %203) #4
  %204 = getelementptr inbounds i8, ptr %2, i64 2280
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %204) #4
  %205 = getelementptr inbounds i8, ptr %2, i64 2256
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %205) #4
  %206 = getelementptr inbounds i8, ptr %2, i64 2232
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %206) #4
  %207 = getelementptr inbounds i8, ptr %2, i64 2208
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %207) #4
  %208 = getelementptr inbounds i8, ptr %2, i64 2184
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %208) #4
  %209 = getelementptr inbounds i8, ptr %2, i64 2160
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %209) #4
  %210 = getelementptr inbounds i8, ptr %2, i64 2136
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %210) #4
  %211 = getelementptr inbounds i8, ptr %2, i64 2112
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %211) #4
  %212 = getelementptr inbounds i8, ptr %2, i64 2088
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %212) #4
  %213 = getelementptr inbounds i8, ptr %2, i64 2064
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %213) #4
  %214 = getelementptr inbounds i8, ptr %2, i64 2040
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %214) #4
  %215 = getelementptr inbounds i8, ptr %2, i64 2016
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %215) #4
  %216 = getelementptr inbounds i8, ptr %2, i64 1992
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %216) #4
  %217 = getelementptr inbounds i8, ptr %2, i64 1968
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %217) #4
  %218 = getelementptr inbounds i8, ptr %2, i64 1944
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %218) #4
  %219 = getelementptr inbounds i8, ptr %2, i64 1920
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %219) #4
  %220 = getelementptr inbounds i8, ptr %2, i64 1896
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %220) #4
  %221 = getelementptr inbounds i8, ptr %2, i64 1872
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %221) #4
  %222 = getelementptr inbounds i8, ptr %2, i64 1848
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %222) #4
  %223 = getelementptr inbounds i8, ptr %2, i64 1824
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %223) #4
  %224 = getelementptr inbounds i8, ptr %2, i64 1800
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %224) #4
  %225 = getelementptr inbounds i8, ptr %2, i64 1776
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %225) #4
  %226 = getelementptr inbounds i8, ptr %2, i64 1752
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %226) #4
  %227 = getelementptr inbounds i8, ptr %2, i64 1728
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %227) #4
  %228 = getelementptr inbounds i8, ptr %2, i64 1704
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %228) #4
  %229 = getelementptr inbounds i8, ptr %2, i64 1680
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %229) #4
  %230 = getelementptr inbounds i8, ptr %2, i64 1656
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %230) #4
  %231 = getelementptr inbounds i8, ptr %2, i64 1632
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %231) #4
  %232 = getelementptr inbounds i8, ptr %2, i64 1608
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %232) #4
  %233 = getelementptr inbounds i8, ptr %2, i64 1584
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %233) #4
  %234 = getelementptr inbounds i8, ptr %2, i64 1560
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %234) #4
  %235 = getelementptr inbounds i8, ptr %2, i64 1536
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #4
  %236 = getelementptr inbounds i8, ptr %2, i64 1512
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %236) #4
  %237 = getelementptr inbounds i8, ptr %2, i64 1488
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %237) #4
  %238 = getelementptr inbounds i8, ptr %2, i64 1464
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %238) #4
  %239 = getelementptr inbounds i8, ptr %2, i64 1440
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %239) #4
  %240 = getelementptr inbounds i8, ptr %2, i64 1416
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %240) #4
  %241 = getelementptr inbounds i8, ptr %2, i64 1392
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %241) #4
  %242 = getelementptr inbounds i8, ptr %2, i64 1368
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %242) #4
  %243 = getelementptr inbounds i8, ptr %2, i64 1344
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %243) #4
  %244 = getelementptr inbounds i8, ptr %2, i64 1320
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %244) #4
  %245 = getelementptr inbounds i8, ptr %2, i64 1296
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %245) #4
  %246 = getelementptr inbounds i8, ptr %2, i64 1272
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %246) #4
  %247 = getelementptr inbounds i8, ptr %2, i64 1248
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %247) #4
  %248 = getelementptr inbounds i8, ptr %2, i64 1224
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %248) #4
  %249 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %249) #4
  %250 = getelementptr inbounds i8, ptr %2, i64 1176
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %250) #4
  %251 = getelementptr inbounds i8, ptr %2, i64 1152
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %251) #4
  %252 = getelementptr inbounds i8, ptr %2, i64 1128
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %252) #4
  %253 = getelementptr inbounds i8, ptr %2, i64 1104
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %253) #4
  %254 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %254) #4
  %255 = getelementptr inbounds i8, ptr %2, i64 1056
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %255) #4
  %256 = getelementptr inbounds i8, ptr %2, i64 1032
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %256) #4
  %257 = getelementptr inbounds i8, ptr %2, i64 1008
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %257) #4
  %258 = getelementptr inbounds i8, ptr %2, i64 984
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %258) #4
  %259 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %259) #4
  %260 = getelementptr inbounds i8, ptr %2, i64 936
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %260) #4
  %261 = getelementptr inbounds i8, ptr %2, i64 912
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %261) #4
  %262 = getelementptr inbounds i8, ptr %2, i64 888
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %262) #4
  %263 = getelementptr inbounds i8, ptr %2, i64 864
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %263) #4
  %264 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %264) #4
  %265 = getelementptr inbounds i8, ptr %2, i64 816
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %265) #4
  %266 = getelementptr inbounds i8, ptr %2, i64 792
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %266) #4
  %267 = getelementptr inbounds i8, ptr %2, i64 768
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %267) #4
  %268 = getelementptr inbounds i8, ptr %2, i64 744
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %268) #4
  %269 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %269) #4
  %270 = getelementptr inbounds i8, ptr %2, i64 696
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %270) #4
  %271 = getelementptr inbounds i8, ptr %2, i64 672
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %271) #4
  %272 = getelementptr inbounds i8, ptr %2, i64 648
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %272) #4
  %273 = getelementptr inbounds i8, ptr %2, i64 624
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %273) #4
  %274 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %274) #4
  %275 = getelementptr inbounds i8, ptr %2, i64 576
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %275) #4
  %276 = getelementptr inbounds i8, ptr %2, i64 552
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %276) #4
  %277 = getelementptr inbounds i8, ptr %2, i64 528
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %277) #4
  %278 = getelementptr inbounds i8, ptr %2, i64 504
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %278) #4
  %279 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %279) #4
  %280 = getelementptr inbounds i8, ptr %2, i64 456
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %280) #4
  %281 = getelementptr inbounds i8, ptr %2, i64 432
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %281) #4
  %282 = getelementptr inbounds i8, ptr %2, i64 408
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %282) #4
  %283 = getelementptr inbounds i8, ptr %2, i64 384
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %283) #4
  %284 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %284) #4
  %285 = getelementptr inbounds i8, ptr %2, i64 336
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %285) #4
  %286 = getelementptr inbounds i8, ptr %2, i64 312
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %286) #4
  %287 = getelementptr inbounds i8, ptr %2, i64 288
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %287) #4
  %288 = getelementptr inbounds i8, ptr %2, i64 264
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %288) #4
  %289 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %289) #4
  %290 = getelementptr inbounds i8, ptr %2, i64 216
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %290) #4
  %291 = getelementptr inbounds i8, ptr %2, i64 192
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %291) #4
  %292 = getelementptr inbounds i8, ptr %2, i64 168
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %292) #4
  %293 = getelementptr inbounds i8, ptr %2, i64 144
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %293) #4
  %294 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %294) #4
  %295 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %295) #4
  %296 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %296) #4
  %297 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %297) #4
  %298 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %298) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader26, %.loopexit19, %26
  %.pn.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %.pn.pn, %.loopexit19 ], [ %27, %.preheader26 ]
  call void @llvm.lifetime.end.p0(i64 3072, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIbE5writeERKb(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 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 uwtable
declare dso_local void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress noreturn 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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