; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/cae_test/general/control/loop/for_datatypes/f_b2310c5b (datatypes5entryEv)

; 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_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%struct.for_datatypes = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, ptr, ptr, ptr, ptr }
%"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" = 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.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"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 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13for_datatypes5entryEv(ptr noundef nonnull align 8 dereferenceable(456) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.sc_dt::sc_signed", align 8
  %5 = alloca %"class.sc_dt::sc_unsigned", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"class.sc_dt::sc_signed", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca %"class.sc_dt::sc_unsigned", align 8
  %17 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  call void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  invoke void @_ZN5sc_dt11sc_unsignedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 8)
          to label %19 unwind label %45

19:                                               ; preds = %1
  %20 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %21, align 8, !tbaa !41
  %23 = getelementptr inbounds ptr, ptr %22, i64 7
  %24 = load ptr, ptr %23, align 8
  %25 = invoke noundef nonnull align 1 dereferenceable(1) ptr %24(ptr noundef nonnull align 8 dereferenceable(224) %21)
          to label %26 unwind label %49

26:                                               ; preds = %19
  %27 = load i8, ptr %25, align 1, !tbaa !43, !range !44, !noundef !45
  %28 = trunc i8 %27 to i1
  %29 = zext i1 %28 to i32
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %61

31:                                               ; preds = %26
  %32 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 6
  %33 = load ptr, ptr %32, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !47
  %34 = load ptr, ptr %33, align 8, !tbaa !41
  %35 = getelementptr inbounds ptr, ptr %34, i64 9
  %36 = load ptr, ptr %35, align 8
  invoke void %36(ptr noundef nonnull align 8 dereferenceable(196) %33, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %37 unwind label %53

37:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %38 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 0, ptr %9, align 1, !tbaa !43
  %40 = load ptr, ptr %39, align 8, !tbaa !41
  %41 = getelementptr inbounds ptr, ptr %40, i64 14
  %42 = load ptr, ptr %41, align 8
  invoke void %42(ptr noundef nonnull align 8 dereferenceable(224) %39, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %43 unwind label %57

43:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %44 unwind label %49

44:                                               ; preds = %43
  br label %63

45:                                               ; preds = %1
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  br label %218

49:                                               ; preds = %211, %195, %193, %189, %180, %176, %173, %172, %165, %149, %147, %143, %134, %130, %127, %126, %119, %104, %100, %91, %86, %78, %66, %61, %43, %19
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %6, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %7, align 4
  br label %217

53:                                               ; preds = %31
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %217

57:                                               ; preds = %37
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %217

61:                                               ; preds = %26
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %62 unwind label %49

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62, %44
  br label %64

64:                                               ; preds = %212, %63
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %79, %65
  %67 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !49
  %69 = load ptr, ptr %68, align 8, !tbaa !41
  %70 = getelementptr inbounds ptr, ptr %69, i64 7
  %71 = load ptr, ptr %70, align 8
  %72 = invoke noundef nonnull align 1 dereferenceable(1) ptr %71(ptr noundef nonnull align 8 dereferenceable(224) %68)
          to label %73 unwind label %49

73:                                               ; preds = %66
  %74 = load i8, ptr %72, align 1, !tbaa !43, !range !44, !noundef !45
  %75 = trunc i8 %74 to i1
  %76 = zext i1 %75 to i32
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %73
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %79 unwind label %49

79:                                               ; preds = %78
  br label %66, !llvm.loop !50

80:                                               ; preds = %73
  %81 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %82 = load ptr, ptr %81, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 1, ptr %10, align 1, !tbaa !43
  %83 = load ptr, ptr %82, align 8, !tbaa !41
  %84 = getelementptr inbounds ptr, ptr %83, i64 14
  %85 = load ptr, ptr %84, align 8
  invoke void %85(ptr noundef nonnull align 8 dereferenceable(224) %82, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %86 unwind label %109

86:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %87 unwind label %49

87:                                               ; preds = %86
  store i32 1, ptr %3, align 4, !tbaa !47
  br label %88

88:                                               ; preds = %106, %87
  %89 = load i32, ptr %3, align 4, !tbaa !47
  %90 = icmp sle i32 %89, 10
  br i1 %90, label %91, label %113

91:                                               ; preds = %88
  %92 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !46
  %94 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !52
  %96 = load ptr, ptr %95, align 8, !tbaa !41
  %97 = getelementptr inbounds ptr, ptr %96, i64 5
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr %98(ptr noundef nonnull align 8 dereferenceable(196) %95)
          to label %100 unwind label %49

100:                                              ; preds = %91
  %101 = load ptr, ptr %93, align 8, !tbaa !41
  %102 = getelementptr inbounds ptr, ptr %101, i64 9
  %103 = load ptr, ptr %102, align 8
  invoke void %103(ptr noundef nonnull align 8 dereferenceable(196) %93, ptr noundef nonnull align 4 dereferenceable(4) %99)
          to label %104 unwind label %49

104:                                              ; preds = %100
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %105 unwind label %49

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %3, align 4, !tbaa !47
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %3, align 4, !tbaa !47
  br label %88, !llvm.loop !53

109:                                              ; preds = %80
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %6, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %217

113:                                              ; preds = %88
  %114 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %115 = load ptr, ptr %114, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  store i8 0, ptr %11, align 1, !tbaa !43
  %116 = load ptr, ptr %115, align 8, !tbaa !41
  %117 = getelementptr inbounds ptr, ptr %116, i64 14
  %118 = load ptr, ptr %117, align 8
  invoke void %118(ptr noundef nonnull align 8 dereferenceable(224) %115, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %119 unwind label %151

119:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %18, i32 noundef 4)
          to label %120 unwind label %49

120:                                              ; preds = %119
  %121 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %122 = load ptr, ptr %121, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 1, ptr %12, align 1, !tbaa !43
  %123 = load ptr, ptr %122, align 8, !tbaa !41
  %124 = getelementptr inbounds ptr, ptr %123, i64 14
  %125 = load ptr, ptr %124, align 8
  invoke void %125(ptr noundef nonnull align 8 dereferenceable(224) %122, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %126 unwind label %155

126:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %127 unwind label %49

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1)
          to label %129 unwind label %49

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %150, %129
  %131 = invoke noundef i32 @_ZNK5sc_dt9sc_signed6to_intEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %132 unwind label %49

132:                                              ; preds = %130
  %133 = icmp sle i32 %131, 10
  br i1 %133, label %134, label %159

134:                                              ; preds = %132
  %135 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 6
  %136 = load ptr, ptr %135, align 8, !tbaa !46
  %137 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !52
  %139 = load ptr, ptr %138, align 8, !tbaa !41
  %140 = getelementptr inbounds ptr, ptr %139, i64 5
  %141 = load ptr, ptr %140, align 8
  %142 = invoke noundef nonnull align 4 dereferenceable(4) ptr %141(ptr noundef nonnull align 8 dereferenceable(196) %138)
          to label %143 unwind label %49

143:                                              ; preds = %134
  %144 = load ptr, ptr %136, align 8, !tbaa !41
  %145 = getelementptr inbounds ptr, ptr %144, i64 9
  %146 = load ptr, ptr %145, align 8
  invoke void %146(ptr noundef nonnull align 8 dereferenceable(196) %136, ptr noundef nonnull align 4 dereferenceable(4) %142)
          to label %147 unwind label %49

147:                                              ; preds = %143
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %148 unwind label %49

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  invoke void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0)
          to label %150 unwind label %49

150:                                              ; preds = %149
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %130, !llvm.loop !54

151:                                              ; preds = %113
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %6, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %217

155:                                              ; preds = %120
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %6, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %217

159:                                              ; preds = %132
  %160 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i8 0, ptr %14, align 1, !tbaa !43
  %162 = load ptr, ptr %161, align 8, !tbaa !41
  %163 = getelementptr inbounds ptr, ptr %162, i64 14
  %164 = load ptr, ptr %163, align 8
  invoke void %164(ptr noundef nonnull align 8 dereferenceable(224) %161, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %165 unwind label %197

165:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %18, i32 noundef 4)
          to label %166 unwind label %49

166:                                              ; preds = %165
  %167 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %168 = load ptr, ptr %167, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  store i8 1, ptr %15, align 1, !tbaa !43
  %169 = load ptr, ptr %168, align 8, !tbaa !41
  %170 = getelementptr inbounds ptr, ptr %169, i64 14
  %171 = load ptr, ptr %170, align 8
  invoke void %171(ptr noundef nonnull align 8 dereferenceable(224) %168, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %172 unwind label %201

172:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %173 unwind label %49

173:                                              ; preds = %172
  %174 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt11sc_unsignedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 1)
          to label %175 unwind label %49

175:                                              ; preds = %173
  br label %176

176:                                              ; preds = %196, %175
  %177 = invoke noundef i32 @_ZNK5sc_dt11sc_unsigned7to_uintEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %178 unwind label %49

178:                                              ; preds = %176
  %179 = icmp ule i32 %177, 10
  br i1 %179, label %180, label %205

180:                                              ; preds = %178
  %181 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 6
  %182 = load ptr, ptr %181, align 8, !tbaa !46
  %183 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !52
  %185 = load ptr, ptr %184, align 8, !tbaa !41
  %186 = getelementptr inbounds ptr, ptr %185, i64 5
  %187 = load ptr, ptr %186, align 8
  %188 = invoke noundef nonnull align 4 dereferenceable(4) ptr %187(ptr noundef nonnull align 8 dereferenceable(196) %184)
          to label %189 unwind label %49

189:                                              ; preds = %180
  %190 = load ptr, ptr %182, align 8, !tbaa !41
  %191 = getelementptr inbounds ptr, ptr %190, i64 9
  %192 = load ptr, ptr %191, align 8
  invoke void %192(ptr noundef nonnull align 8 dereferenceable(196) %182, ptr noundef nonnull align 4 dereferenceable(4) %188)
          to label %193 unwind label %49

193:                                              ; preds = %189
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %194 unwind label %49

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  invoke void @_ZN5sc_dt11sc_unsignedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_unsigned") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 0)
          to label %196 unwind label %49

196:                                              ; preds = %195
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %176, !llvm.loop !55

197:                                              ; preds = %159
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %6, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %217

201:                                              ; preds = %166
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %6, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %217

205:                                              ; preds = %178
  %206 = getelementptr inbounds %struct.for_datatypes, ptr %18, i32 0, i32 5
  %207 = load ptr, ptr %206, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  store i8 0, ptr %17, align 1, !tbaa !43
  %208 = load ptr, ptr %207, align 8, !tbaa !41
  %209 = getelementptr inbounds ptr, ptr %208, i64 14
  %210 = load ptr, ptr %209, align 8
  invoke void %210(ptr noundef nonnull align 8 dereferenceable(224) %207, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %211 unwind label %213

211:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %18)
          to label %212 unwind label %49

212:                                              ; preds = %211
  br label %64, !llvm.loop !56

213:                                              ; preds = %205
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %6, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %217

217:                                              ; preds = %213, %201, %197, %155, %151, %109, %57, %53, %49
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %218

218:                                              ; preds = %217, %45
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %6, align 8
  %221 = load i32, ptr %7, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

declare void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

declare void @_ZN5sc_dt11sc_unsignedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef) #0 align 2

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

declare noundef i32 @_ZNK5sc_dt9sc_signed6to_intEv(ptr noundef nonnull align 8 dereferenceable(32)) #2

declare void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

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

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

declare noundef i32 @_ZNK5sc_dt11sc_unsigned7to_uintEv(ptr noundef nonnull align 8 dereferenceable(32)) #2

declare void @_ZN5sc_dt11sc_unsignedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_unsigned") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 416}
!10 = !{!"_ZTS13for_datatypes", !11, i64 0, !33, i64 232, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448}
!11 = !{!"_ZTSN7sc_core9sc_moduleE", !12, i64 0, !24, i64 112, !25, i64 120, !27, i64 144, !29, i64 168, !31, i64 192, !6, i64 200, !32, i64 208, !6, i64 216, !6, i64 224}
!12 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !13, i64 16, !17, i64 40, !21, i64 64, !6, i64 96, !6, i64 104}
!13 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!25 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !26, i64 8, !6, i64 16}
!26 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!27 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !28, i64 8, !6, i64 16}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN7sc_core5sc_inIbEE", !34, i64 0, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!34 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !35, i64 0}
!35 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !36, i64 0, !6, i64 120, !37, i64 128}
!36 = !{!"_ZTSN7sc_core12sc_port_baseE", !12, i64 0, !6, i64 112}
!37 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !8, i64 0}
!43 = !{!31, !31, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!10, !6, i64 448}
!47 = !{!32, !32, i64 0}
!48 = !{!10, !6, i64 440}
!49 = !{!10, !6, i64 424}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{!10, !6, i64 432}
!53 = distinct !{!53, !51}
!54 = distinct !{!54, !51}
!55 = distinct !{!55, !51}
!56 = distinct !{!56, !51}


; 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_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN13for_datatypes5entryEv(ptr noundef nonnull align 8 dereferenceable(456) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sc_dt::sc_signed", align 8
  %3 = alloca %"class.sc_dt::sc_unsigned", align 8
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"class.sc_dt::sc_signed", align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %"class.sc_dt::sc_unsigned", align 8
  %13 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  invoke void @_ZN5sc_dt11sc_unsignedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 8)
          to label %14 unwind label %37

14:                                               ; preds = %1
  %15 = getelementptr inbounds i8, ptr %0, i64 416
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = load ptr, ptr %16, align 8, !tbaa !40
  %18 = getelementptr inbounds i8, ptr %17, i64 56
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef nonnull align 1 dereferenceable(1) ptr %19(ptr noundef nonnull align 8 dereferenceable(224) %16)
          to label %21 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

21:                                               ; preds = %14
  %22 = load i8, ptr %20, align 1, !tbaa !42, !range !43, !noundef !44
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %.invoke

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 448
  %26 = load ptr, ptr %25, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !46
  %27 = load ptr, ptr %26, align 8, !tbaa !40
  %28 = getelementptr inbounds i8, ptr %27, i64 72
  %29 = load ptr, ptr %28, align 8
  invoke void %29(ptr noundef nonnull align 8 dereferenceable(196) %26, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %30 unwind label %39

30:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %31 = getelementptr inbounds i8, ptr %0, i64 440
  %32 = load ptr, ptr %31, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  store i8 0, ptr %5, align 1, !tbaa !42
  %33 = load ptr, ptr %32, align 8, !tbaa !40
  %34 = getelementptr inbounds i8, ptr %33, i64 112
  %35 = load ptr, ptr %34, align 8
  invoke void %35(ptr noundef nonnull align 8 dereferenceable(224) %32, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %36 unwind label %41

36:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %.invoke

.invoke:                                          ; preds = %21, %36
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %43 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

37:                                               ; preds = %1
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %254

.loopexit:                                        ; preds = %.preheader, %228, %235, %239, %240
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %205, %204, %200, %193, %.preheader9
  %lpad.loopexit10 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %173, %169, %.preheader13.9, %162, %158, %.preheader13.8, %151, %147, %.preheader13.7, %140, %136, %.preheader13.6, %129, %125, %.preheader13.5, %118, %114, %.preheader13.4, %107, %103, %.preheader13.3, %96, %92, %.preheader13.2, %85, %81, %.preheader13.1, %.preheader13.preheader, %70, %74
  %lpad.loopexit14 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %63, %181, %187, %188, %216, %222, %223, %251
  %lpad.loopexit19 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

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

43:                                               ; preds = %.invoke
  %44 = getelementptr inbounds i8, ptr %0, i64 424
  %45 = getelementptr inbounds i8, ptr %0, i64 440
  %46 = getelementptr inbounds i8, ptr %0, i64 448
  %47 = getelementptr inbounds i8, ptr %0, i64 432
  br label %48

48:                                               ; preds = %.backedge, %43
  %49 = load ptr, ptr %44, align 8, !tbaa !48
  %50 = load ptr, ptr %49, align 8, !tbaa !40
  %51 = getelementptr inbounds i8, ptr %50, i64 56
  %52 = load ptr, ptr %51, align 8
  %53 = invoke noundef nonnull align 1 dereferenceable(1) ptr %52(ptr noundef nonnull align 8 dereferenceable(224) %49)
          to label %54 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

54:                                               ; preds = %48
  %55 = load i8, ptr %53, align 1, !tbaa !42, !range !43, !noundef !44
  %56 = icmp eq i8 %55, 0
  br i1 %56, label %57, label %58

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

.backedge:                                        ; preds = %57, %251
  br label %48, !llvm.loop !49

58:                                               ; preds = %54
  %59 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 1, ptr %6, align 1, !tbaa !42
  %60 = load ptr, ptr %59, align 8, !tbaa !40
  %61 = getelementptr inbounds i8, ptr %60, i64 112
  %62 = load ptr, ptr %61, align 8
  invoke void %62(ptr noundef nonnull align 8 dereferenceable(224) %59, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %63 unwind label %179

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

.preheader13.preheader:                           ; preds = %63
  %64 = load ptr, ptr %46, align 8, !tbaa !45
  %65 = load ptr, ptr %47, align 8, !tbaa !51
  %66 = load ptr, ptr %65, align 8, !tbaa !40
  %67 = getelementptr inbounds i8, ptr %66, i64 40
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr %68(ptr noundef nonnull align 8 dereferenceable(196) %65)
          to label %70 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

70:                                               ; preds = %.preheader13.preheader
  %71 = load ptr, ptr %64, align 8, !tbaa !40
  %72 = getelementptr inbounds i8, ptr %71, i64 72
  %73 = load ptr, ptr %72, align 8
  invoke void %73(ptr noundef nonnull align 8 dereferenceable(196) %64, ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %74 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

74:                                               ; preds = %70
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.1 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.1:                                   ; preds = %74
  %75 = load ptr, ptr %46, align 8, !tbaa !45
  %76 = load ptr, ptr %47, align 8, !tbaa !51
  %77 = load ptr, ptr %76, align 8, !tbaa !40
  %78 = getelementptr inbounds i8, ptr %77, i64 40
  %79 = load ptr, ptr %78, align 8
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr %79(ptr noundef nonnull align 8 dereferenceable(196) %76)
          to label %81 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

81:                                               ; preds = %.preheader13.1
  %82 = load ptr, ptr %75, align 8, !tbaa !40
  %83 = getelementptr inbounds i8, ptr %82, i64 72
  %84 = load ptr, ptr %83, align 8
  invoke void %84(ptr noundef nonnull align 8 dereferenceable(196) %75, ptr noundef nonnull align 4 dereferenceable(4) %80)
          to label %85 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

85:                                               ; preds = %81
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.2 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.2:                                   ; preds = %85
  %86 = load ptr, ptr %46, align 8, !tbaa !45
  %87 = load ptr, ptr %47, align 8, !tbaa !51
  %88 = load ptr, ptr %87, align 8, !tbaa !40
  %89 = getelementptr inbounds i8, ptr %88, i64 40
  %90 = load ptr, ptr %89, align 8
  %91 = invoke noundef nonnull align 4 dereferenceable(4) ptr %90(ptr noundef nonnull align 8 dereferenceable(196) %87)
          to label %92 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

92:                                               ; preds = %.preheader13.2
  %93 = load ptr, ptr %86, align 8, !tbaa !40
  %94 = getelementptr inbounds i8, ptr %93, i64 72
  %95 = load ptr, ptr %94, align 8
  invoke void %95(ptr noundef nonnull align 8 dereferenceable(196) %86, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %96 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

96:                                               ; preds = %92
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.3 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.3:                                   ; preds = %96
  %97 = load ptr, ptr %46, align 8, !tbaa !45
  %98 = load ptr, ptr %47, align 8, !tbaa !51
  %99 = load ptr, ptr %98, align 8, !tbaa !40
  %100 = getelementptr inbounds i8, ptr %99, i64 40
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr %101(ptr noundef nonnull align 8 dereferenceable(196) %98)
          to label %103 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

103:                                              ; preds = %.preheader13.3
  %104 = load ptr, ptr %97, align 8, !tbaa !40
  %105 = getelementptr inbounds i8, ptr %104, i64 72
  %106 = load ptr, ptr %105, align 8
  invoke void %106(ptr noundef nonnull align 8 dereferenceable(196) %97, ptr noundef nonnull align 4 dereferenceable(4) %102)
          to label %107 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

107:                                              ; preds = %103
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.4 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.4:                                   ; preds = %107
  %108 = load ptr, ptr %46, align 8, !tbaa !45
  %109 = load ptr, ptr %47, align 8, !tbaa !51
  %110 = load ptr, ptr %109, align 8, !tbaa !40
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr %112(ptr noundef nonnull align 8 dereferenceable(196) %109)
          to label %114 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

114:                                              ; preds = %.preheader13.4
  %115 = load ptr, ptr %108, align 8, !tbaa !40
  %116 = getelementptr inbounds i8, ptr %115, i64 72
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 8 dereferenceable(196) %108, ptr noundef nonnull align 4 dereferenceable(4) %113)
          to label %118 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

118:                                              ; preds = %114
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.5 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.5:                                   ; preds = %118
  %119 = load ptr, ptr %46, align 8, !tbaa !45
  %120 = load ptr, ptr %47, align 8, !tbaa !51
  %121 = load ptr, ptr %120, align 8, !tbaa !40
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  %123 = load ptr, ptr %122, align 8
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr %123(ptr noundef nonnull align 8 dereferenceable(196) %120)
          to label %125 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

125:                                              ; preds = %.preheader13.5
  %126 = load ptr, ptr %119, align 8, !tbaa !40
  %127 = getelementptr inbounds i8, ptr %126, i64 72
  %128 = load ptr, ptr %127, align 8
  invoke void %128(ptr noundef nonnull align 8 dereferenceable(196) %119, ptr noundef nonnull align 4 dereferenceable(4) %124)
          to label %129 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

129:                                              ; preds = %125
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.6 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.6:                                   ; preds = %129
  %130 = load ptr, ptr %46, align 8, !tbaa !45
  %131 = load ptr, ptr %47, align 8, !tbaa !51
  %132 = load ptr, ptr %131, align 8, !tbaa !40
  %133 = getelementptr inbounds i8, ptr %132, i64 40
  %134 = load ptr, ptr %133, align 8
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr %134(ptr noundef nonnull align 8 dereferenceable(196) %131)
          to label %136 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

136:                                              ; preds = %.preheader13.6
  %137 = load ptr, ptr %130, align 8, !tbaa !40
  %138 = getelementptr inbounds i8, ptr %137, i64 72
  %139 = load ptr, ptr %138, align 8
  invoke void %139(ptr noundef nonnull align 8 dereferenceable(196) %130, ptr noundef nonnull align 4 dereferenceable(4) %135)
          to label %140 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

140:                                              ; preds = %136
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.7 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.7:                                   ; preds = %140
  %141 = load ptr, ptr %46, align 8, !tbaa !45
  %142 = load ptr, ptr %47, align 8, !tbaa !51
  %143 = load ptr, ptr %142, align 8, !tbaa !40
  %144 = getelementptr inbounds i8, ptr %143, i64 40
  %145 = load ptr, ptr %144, align 8
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr %145(ptr noundef nonnull align 8 dereferenceable(196) %142)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

147:                                              ; preds = %.preheader13.7
  %148 = load ptr, ptr %141, align 8, !tbaa !40
  %149 = getelementptr inbounds i8, ptr %148, i64 72
  %150 = load ptr, ptr %149, align 8
  invoke void %150(ptr noundef nonnull align 8 dereferenceable(196) %141, ptr noundef nonnull align 4 dereferenceable(4) %146)
          to label %151 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

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

.preheader13.8:                                   ; preds = %151
  %152 = load ptr, ptr %46, align 8, !tbaa !45
  %153 = load ptr, ptr %47, align 8, !tbaa !51
  %154 = load ptr, ptr %153, align 8, !tbaa !40
  %155 = getelementptr inbounds i8, ptr %154, i64 40
  %156 = load ptr, ptr %155, align 8
  %157 = invoke noundef nonnull align 4 dereferenceable(4) ptr %156(ptr noundef nonnull align 8 dereferenceable(196) %153)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

158:                                              ; preds = %.preheader13.8
  %159 = load ptr, ptr %152, align 8, !tbaa !40
  %160 = getelementptr inbounds i8, ptr %159, i64 72
  %161 = load ptr, ptr %160, align 8
  invoke void %161(ptr noundef nonnull align 8 dereferenceable(196) %152, ptr noundef nonnull align 4 dereferenceable(4) %157)
          to label %162 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

162:                                              ; preds = %158
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader13.9 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader13.9:                                   ; preds = %162
  %163 = load ptr, ptr %46, align 8, !tbaa !45
  %164 = load ptr, ptr %47, align 8, !tbaa !51
  %165 = load ptr, ptr %164, align 8, !tbaa !40
  %166 = getelementptr inbounds i8, ptr %165, i64 40
  %167 = load ptr, ptr %166, align 8
  %168 = invoke noundef nonnull align 4 dereferenceable(4) ptr %167(ptr noundef nonnull align 8 dereferenceable(196) %164)
          to label %169 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

169:                                              ; preds = %.preheader13.9
  %170 = load ptr, ptr %163, align 8, !tbaa !40
  %171 = getelementptr inbounds i8, ptr %170, i64 72
  %172 = load ptr, ptr %171, align 8
  invoke void %172(ptr noundef nonnull align 8 dereferenceable(196) %163, ptr noundef nonnull align 4 dereferenceable(4) %168)
          to label %173 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

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

174:                                              ; preds = %173
  %175 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  store i8 0, ptr %7, align 1, !tbaa !42
  %176 = load ptr, ptr %175, align 8, !tbaa !40
  %177 = getelementptr inbounds i8, ptr %176, i64 112
  %178 = load ptr, ptr %177, align 8
  invoke void %178(ptr noundef nonnull align 8 dereferenceable(224) %175, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %181 unwind label %207

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

181:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 4)
          to label %182 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

182:                                              ; preds = %181
  %183 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  store i8 1, ptr %8, align 1, !tbaa !42
  %184 = load ptr, ptr %183, align 8, !tbaa !40
  %185 = getelementptr inbounds i8, ptr %184, i64 112
  %186 = load ptr, ptr %185, align 8
  invoke void %186(ptr noundef nonnull align 8 dereferenceable(224) %183, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %187 unwind label %209

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

188:                                              ; preds = %187
  %189 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 1)
          to label %.preheader9 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader9:                                      ; preds = %188, %206
  %190 = invoke noundef i32 @_ZNK5sc_dt9sc_signed6to_intEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %191 unwind label %.loopexit.split-lp.loopexit

191:                                              ; preds = %.preheader9
  %192 = icmp slt i32 %190, 11
  br i1 %192, label %193, label %211

193:                                              ; preds = %191
  %194 = load ptr, ptr %46, align 8, !tbaa !45
  %195 = load ptr, ptr %47, align 8, !tbaa !51
  %196 = load ptr, ptr %195, align 8, !tbaa !40
  %197 = getelementptr inbounds i8, ptr %196, i64 40
  %198 = load ptr, ptr %197, align 8
  %199 = invoke noundef nonnull align 4 dereferenceable(4) ptr %198(ptr noundef nonnull align 8 dereferenceable(196) %195)
          to label %200 unwind label %.loopexit.split-lp.loopexit

200:                                              ; preds = %193
  %201 = load ptr, ptr %194, align 8, !tbaa !40
  %202 = getelementptr inbounds i8, ptr %201, i64 72
  %203 = load ptr, ptr %202, align 8
  invoke void %203(ptr noundef nonnull align 8 dereferenceable(196) %194, ptr noundef nonnull align 4 dereferenceable(4) %199)
          to label %204 unwind label %.loopexit.split-lp.loopexit

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

205:                                              ; preds = %204
  invoke void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_signed") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 0)
          to label %206 unwind label %.loopexit.split-lp.loopexit

206:                                              ; preds = %205
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %.preheader9, !llvm.loop !52

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

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

211:                                              ; preds = %191
  %212 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  store i8 0, ptr %10, align 1, !tbaa !42
  %213 = load ptr, ptr %212, align 8, !tbaa !40
  %214 = getelementptr inbounds i8, ptr %213, i64 112
  %215 = load ptr, ptr %214, align 8
  invoke void %215(ptr noundef nonnull align 8 dereferenceable(224) %212, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %216 unwind label %242

216:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 4)
          to label %217 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

217:                                              ; preds = %216
  %218 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  store i8 1, ptr %11, align 1, !tbaa !42
  %219 = load ptr, ptr %218, align 8, !tbaa !40
  %220 = getelementptr inbounds i8, ptr %219, i64 112
  %221 = load ptr, ptr %220, align 8
  invoke void %221(ptr noundef nonnull align 8 dereferenceable(224) %218, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %222 unwind label %244

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

223:                                              ; preds = %222
  %224 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt11sc_unsignedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 1)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader:                                       ; preds = %223, %241
  %225 = invoke noundef i32 @_ZNK5sc_dt11sc_unsigned7to_uintEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %226 unwind label %.loopexit

226:                                              ; preds = %.preheader
  %227 = icmp ult i32 %225, 11
  br i1 %227, label %228, label %246

228:                                              ; preds = %226
  %229 = load ptr, ptr %46, align 8, !tbaa !45
  %230 = load ptr, ptr %47, align 8, !tbaa !51
  %231 = load ptr, ptr %230, align 8, !tbaa !40
  %232 = getelementptr inbounds i8, ptr %231, i64 40
  %233 = load ptr, ptr %232, align 8
  %234 = invoke noundef nonnull align 4 dereferenceable(4) ptr %233(ptr noundef nonnull align 8 dereferenceable(196) %230)
          to label %235 unwind label %.loopexit

235:                                              ; preds = %228
  %236 = load ptr, ptr %229, align 8, !tbaa !40
  %237 = getelementptr inbounds i8, ptr %236, i64 72
  %238 = load ptr, ptr %237, align 8
  invoke void %238(ptr noundef nonnull align 8 dereferenceable(196) %229, ptr noundef nonnull align 4 dereferenceable(4) %234)
          to label %239 unwind label %.loopexit

239:                                              ; preds = %235
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %240 unwind label %.loopexit

240:                                              ; preds = %239
  invoke void @_ZN5sc_dt11sc_unsignedppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_unsigned") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0)
          to label %241 unwind label %.loopexit

241:                                              ; preds = %240
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %.preheader, !llvm.loop !53

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

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

246:                                              ; preds = %226
  %247 = load ptr, ptr %45, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  store i8 0, ptr %13, align 1, !tbaa !42
  %248 = load ptr, ptr %247, align 8, !tbaa !40
  %249 = getelementptr inbounds i8, ptr %248, i64 112
  %250 = load ptr, ptr %249, align 8
  invoke void %250(ptr noundef nonnull align 8 dereferenceable(224) %247, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %251 unwind label %252

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

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

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %252, %244, %242, %209, %207, %179, %41, %39
  %.pn = phi { ptr, i32 } [ %253, %252 ], [ %245, %244 ], [ %243, %242 ], [ %210, %209 ], [ %208, %207 ], [ %180, %179 ], [ %42, %41 ], [ %40, %39 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit10, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit14, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit16, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit19, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %254

254:                                              ; preds = %.loopexit.split-lp, %37
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn
}

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

declare void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

declare void @_ZN5sc_dt11sc_unsignedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef) local_unnamed_addr #3 align 2

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

declare noundef i32 @_ZNK5sc_dt9sc_signed6to_intEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

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

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

declare noundef i32 @_ZNK5sc_dt11sc_unsigned7to_uintEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare void @_ZN5sc_dt11sc_unsignedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_unsigned") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt11sc_unsignedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 = { "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 = { 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 #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, !9, i64 416}
!6 = !{!"_ZTS13for_datatypes", !7, i64 0, !32, i64 232, !9, i64 416, !9, i64 424, !9, i64 432, !9, i64 440, !9, i64 448}
!7 = !{!"_ZTSN7sc_core9sc_moduleE", !8, i64 0, !23, i64 112, !24, i64 120, !26, i64 144, !28, i64 168, !30, i64 192, !9, i64 200, !31, i64 208, !9, i64 216, !9, i64 224}
!8 = !{!"_ZTSN7sc_core9sc_objectE", !9, i64 8, !12, i64 16, !16, i64 40, !20, i64 64, !9, i64 96, !9, i64 104}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!16 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !10, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!22 = !{!"long", !10, i64 0}
!23 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!24 = !{!"_ZTSN7sc_core12sc_sensitiveE", !9, i64 0, !25, i64 8, !9, i64 16}
!25 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !10, i64 0}
!26 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !9, i64 0, !27, i64 8, !9, i64 16}
!27 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !10, i64 0}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !9, i64 0, !29, i64 8, !9, i64 16}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !10, i64 0}
!30 = !{!"bool", !10, i64 0}
!31 = !{!"int", !10, i64 0}
!32 = !{!"_ZTSN7sc_core5sc_inIbEE", !33, i64 0, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176}
!33 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !34, i64 0}
!34 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !35, i64 0, !9, i64 120, !36, i64 128}
!35 = !{!"_ZTSN7sc_core12sc_port_baseE", !8, i64 0, !9, i64 112}
!36 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!40 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !11, i64 0}
!42 = !{!30, !30, i64 0}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!6, !9, i64 448}
!46 = !{!31, !31, i64 0}
!47 = !{!6, !9, i64 440}
!48 = !{!6, !9, i64 424}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = !{!6, !9, i64 432}
!52 = distinct !{!52, !50}
!53 = distinct !{!53, !50}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass