; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/cae_test/general/control/loop/for_exit/for_ex_c5817eb9 (exit5entryEv)

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

%struct.for_exit = 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 @_ZN8for_exit5entryEv(ptr noundef nonnull align 8 dereferenceable(456) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  %12 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %13, align 8, !tbaa !41
  %15 = getelementptr inbounds ptr, ptr %14, i64 7
  %16 = load ptr, ptr %15, align 8
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr %16(ptr noundef nonnull align 8 dereferenceable(224) %13)
  %18 = load i8, ptr %17, align 1, !tbaa !43, !range !44, !noundef !45
  %19 = trunc i8 %18 to i1
  %20 = zext i1 %19 to i32
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %33

22:                                               ; preds = %1
  %23 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 6
  %24 = load ptr, ptr %23, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 0, ptr %5, align 4, !tbaa !47
  %25 = load ptr, ptr %24, align 8, !tbaa !41
  %26 = getelementptr inbounds ptr, ptr %25, i64 9
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr noundef nonnull align 8 dereferenceable(196) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  %28 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 5
  %29 = load ptr, ptr %28, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #2
  store i8 0, ptr %6, align 1, !tbaa !43
  %30 = load ptr, ptr %29, align 8, !tbaa !41
  %31 = getelementptr inbounds ptr, ptr %30, i64 14
  %32 = load ptr, ptr %31, align 8
  call void %32(ptr noundef nonnull align 8 dereferenceable(224) %29, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %34

33:                                               ; preds = %1
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %34

34:                                               ; preds = %33, %22
  br label %35

35:                                               ; preds = %122, %34
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %48, %36
  %38 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 3
  %39 = load ptr, ptr %38, align 8, !tbaa !49
  %40 = load ptr, ptr %39, align 8, !tbaa !41
  %41 = getelementptr inbounds ptr, ptr %40, i64 7
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr %42(ptr noundef nonnull align 8 dereferenceable(224) %39)
  %44 = load i8, ptr %43, align 1, !tbaa !43, !range !44, !noundef !45
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %37
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %37, !llvm.loop !50

49:                                               ; preds = %37
  %50 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #2
  store i8 1, ptr %7, align 1, !tbaa !43
  %52 = load ptr, ptr %51, align 8, !tbaa !41
  %53 = getelementptr inbounds ptr, ptr %52, i64 14
  %54 = load ptr, ptr %53, align 8
  call void %54(ptr noundef nonnull align 8 dereferenceable(224) %51, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  store i32 1, ptr %3, align 4, !tbaa !47
  br label %55

55:                                               ; preds = %84, %49
  %56 = load i32, ptr %3, align 4, !tbaa !47
  %57 = icmp sle i32 %56, 10
  br i1 %57, label %58, label %87

58:                                               ; preds = %55
  %59 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !52
  %61 = load ptr, ptr %60, align 8, !tbaa !41
  %62 = getelementptr inbounds ptr, ptr %61, i64 5
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr %63(ptr noundef nonnull align 8 dereferenceable(196) %60)
  %65 = load i32, ptr %64, align 4, !tbaa !47
  store i32 %65, ptr %4, align 4, !tbaa !47
  %66 = load i32, ptr %3, align 4, !tbaa !47
  %67 = icmp eq i32 %66, 8
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %84

69:                                               ; preds = %58
  %70 = load i32, ptr %4, align 4, !tbaa !47
  %71 = icmp slt i32 %70, 5
  br i1 %71, label %72, label %76

72:                                               ; preds = %69
  %73 = load i32, ptr %3, align 4, !tbaa !47
  %74 = icmp ne i32 %73, 1
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %84

76:                                               ; preds = %72, %69
  %77 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 6
  %78 = load ptr, ptr %77, align 8, !tbaa !46
  %79 = load ptr, ptr %78, align 8, !tbaa !41
  %80 = getelementptr inbounds ptr, ptr %79, i64 9
  %81 = load ptr, ptr %80, align 8
  call void %81(ptr noundef nonnull align 8 dereferenceable(196) %78, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %82

82:                                               ; preds = %76
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %75, %68
  %85 = load i32, ptr %3, align 4, !tbaa !47
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %3, align 4, !tbaa !47
  br label %55, !llvm.loop !53

87:                                               ; preds = %55
  %88 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 5
  %89 = load ptr, ptr %88, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #2
  store i8 0, ptr %8, align 1, !tbaa !43
  %90 = load ptr, ptr %89, align 8, !tbaa !41
  %91 = getelementptr inbounds ptr, ptr %90, i64 14
  %92 = load ptr, ptr %91, align 8
  call void %92(ptr noundef nonnull align 8 dereferenceable(224) %89, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #2
  call void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %11, i32 noundef 5)
  %93 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #2
  store i8 1, ptr %9, align 1, !tbaa !43
  %95 = load ptr, ptr %94, align 8, !tbaa !41
  %96 = getelementptr inbounds ptr, ptr %95, i64 14
  %97 = load ptr, ptr %96, align 8
  call void %97(ptr noundef nonnull align 8 dereferenceable(224) %94, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  store i32 1, ptr %3, align 4, !tbaa !47
  br label %98

98:                                               ; preds = %119, %87
  %99 = load i32, ptr %3, align 4, !tbaa !47
  %100 = icmp sle i32 %99, 10
  br i1 %100, label %101, label %122

101:                                              ; preds = %98
  %102 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !52
  %104 = load ptr, ptr %103, align 8, !tbaa !41
  %105 = getelementptr inbounds ptr, ptr %104, i64 5
  %106 = load ptr, ptr %105, align 8
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr %106(ptr noundef nonnull align 8 dereferenceable(196) %103)
  %108 = load i32, ptr %107, align 4, !tbaa !47
  store i32 %108, ptr %4, align 4, !tbaa !47
  %109 = load i32, ptr %4, align 4, !tbaa !47
  %110 = icmp eq i32 %109, 7
  br i1 %110, label %111, label %112

111:                                              ; preds = %101
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %122

112:                                              ; preds = %101
  %113 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 6
  %114 = load ptr, ptr %113, align 8, !tbaa !46
  %115 = load ptr, ptr %114, align 8, !tbaa !41
  %116 = getelementptr inbounds ptr, ptr %115, i64 9
  %117 = load ptr, ptr %116, align 8
  call void %117(ptr noundef nonnull align 8 dereferenceable(196) %114, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %118

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %3, align 4, !tbaa !47
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %3, align 4, !tbaa !47
  br label %98, !llvm.loop !54

122:                                              ; preds = %111, %98
  %123 = getelementptr inbounds %struct.for_exit, ptr %11, i32 0, i32 5
  %124 = load ptr, ptr %123, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #2
  store i8 0, ptr %10, align 1, !tbaa !43
  %125 = load ptr, ptr %124, align 8, !tbaa !41
  %126 = getelementptr inbounds ptr, ptr %125, i64 14
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr noundef nonnull align 8 dereferenceable(224) %124, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %35, !llvm.loop !55
}

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

; 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

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 = { 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 = !{!"_ZTS8for_exit", !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}


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

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN8for_exit5entryEv(ptr noundef nonnull align 8 dereferenceable(456) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %9 = getelementptr inbounds i8, ptr %0, i64 416
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %10, align 8, !tbaa !40
  %12 = getelementptr inbounds i8, ptr %11, i64 56
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef nonnull align 1 dereferenceable(1) ptr %13(ptr noundef nonnull align 8 dereferenceable(224) %10)
  %15 = load i8, ptr %14, align 1, !tbaa !42, !range !43, !noundef !44
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %28

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 448
  %19 = load ptr, ptr %18, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !46
  %20 = load ptr, ptr %19, align 8, !tbaa !40
  %21 = getelementptr inbounds i8, ptr %20, i64 72
  %22 = load ptr, ptr %21, align 8
  call void %22(ptr noundef nonnull align 8 dereferenceable(196) %19, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %23 = getelementptr inbounds i8, ptr %0, i64 440
  %24 = load ptr, ptr %23, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  store i8 0, ptr %4, align 1, !tbaa !42
  %25 = load ptr, ptr %24, align 8, !tbaa !40
  %26 = getelementptr inbounds i8, ptr %25, i64 112
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr noundef nonnull align 8 dereferenceable(224) %24, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  br label %29

28:                                               ; preds = %1
  tail call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  br label %29

29:                                               ; preds = %28, %17
  %30 = getelementptr inbounds i8, ptr %0, i64 424
  %31 = getelementptr inbounds i8, ptr %0, i64 440
  %32 = getelementptr inbounds i8, ptr %0, i64 432
  %33 = getelementptr inbounds i8, ptr %0, i64 448
  br label %34

34:                                               ; preds = %.loopexit, %29
  %35 = load ptr, ptr %30, align 8, !tbaa !48
  %36 = load ptr, ptr %35, align 8, !tbaa !40
  %37 = getelementptr inbounds i8, ptr %36, i64 56
  %38 = load ptr, ptr %37, align 8
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr %38(ptr noundef nonnull align 8 dereferenceable(224) %35)
  %40 = load i8, ptr %39, align 1, !tbaa !42, !range !43, !noundef !44
  %41 = icmp eq i8 %40, 0
  br i1 %41, label %.lr.ph, label %.loopexit15

.lr.ph:                                           ; preds = %34, %.lr.ph
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %42 = load ptr, ptr %30, align 8, !tbaa !48
  %43 = load ptr, ptr %42, align 8, !tbaa !40
  %44 = getelementptr inbounds i8, ptr %43, i64 56
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr %45(ptr noundef nonnull align 8 dereferenceable(224) %42)
  %47 = load i8, ptr %46, align 1, !tbaa !42, !range !43, !noundef !44
  %48 = icmp eq i8 %47, 0
  br i1 %48, label %.lr.ph, label %.loopexit15, !llvm.loop !49

.loopexit15:                                      ; preds = %.lr.ph, %34
  %49 = load ptr, ptr %31, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  store i8 1, ptr %5, align 1, !tbaa !42
  %50 = load ptr, ptr %49, align 8, !tbaa !40
  %51 = getelementptr inbounds i8, ptr %50, i64 112
  %52 = load ptr, ptr %51, align 8
  call void %52(ptr noundef nonnull align 8 dereferenceable(224) %49, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %53 = load ptr, ptr %32, align 8, !tbaa !51
  %54 = load ptr, ptr %53, align 8, !tbaa !40
  %55 = getelementptr inbounds i8, ptr %54, i64 40
  %56 = load ptr, ptr %55, align 8
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr %56(ptr noundef nonnull align 8 dereferenceable(196) %53)
  %58 = load i32, ptr %57, align 4, !tbaa !46
  store i32 %58, ptr %2, align 4, !tbaa !46
  %59 = load ptr, ptr %33, align 8, !tbaa !45
  %60 = load ptr, ptr %59, align 8, !tbaa !40
  %61 = getelementptr inbounds i8, ptr %60, i64 72
  %62 = load ptr, ptr %61, align 8
  call void %62(ptr noundef nonnull align 8 dereferenceable(196) %59, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %.pre = load ptr, ptr %32, align 8, !tbaa !51
  %.pre9 = load ptr, ptr %.pre, align 8, !tbaa !40
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre9, i64 40
  %.pre10 = load ptr, ptr %.phi.trans.insert, align 8
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr %.pre10(ptr noundef nonnull align 8 dereferenceable(196) %.pre)
  %64 = load i32, ptr %63, align 4, !tbaa !46
  store i32 %64, ptr %2, align 4, !tbaa !46
  %65 = icmp slt i32 %64, 5
  br i1 %65, label %71, label %66

66:                                               ; preds = %.loopexit15
  %67 = load ptr, ptr %33, align 8, !tbaa !45
  %68 = load ptr, ptr %67, align 8, !tbaa !40
  %69 = getelementptr inbounds i8, ptr %68, i64 72
  %70 = load ptr, ptr %69, align 8
  call void %70(ptr noundef nonnull align 8 dereferenceable(196) %67, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %71

71:                                               ; preds = %.loopexit15, %66
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %72 = load ptr, ptr %32, align 8, !tbaa !51
  %73 = load ptr, ptr %72, align 8, !tbaa !40
  %74 = getelementptr inbounds i8, ptr %73, i64 40
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr %75(ptr noundef nonnull align 8 dereferenceable(196) %72)
  %77 = load i32, ptr %76, align 4, !tbaa !46
  store i32 %77, ptr %2, align 4, !tbaa !46
  %78 = icmp slt i32 %77, 5
  br i1 %78, label %84, label %79

79:                                               ; preds = %71
  %80 = load ptr, ptr %33, align 8, !tbaa !45
  %81 = load ptr, ptr %80, align 8, !tbaa !40
  %82 = getelementptr inbounds i8, ptr %81, i64 72
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(196) %80, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %84

84:                                               ; preds = %71, %79
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %85 = load ptr, ptr %32, align 8, !tbaa !51
  %86 = load ptr, ptr %85, align 8, !tbaa !40
  %87 = getelementptr inbounds i8, ptr %86, i64 40
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr %88(ptr noundef nonnull align 8 dereferenceable(196) %85)
  %90 = load i32, ptr %89, align 4, !tbaa !46
  store i32 %90, ptr %2, align 4, !tbaa !46
  %91 = icmp slt i32 %90, 5
  br i1 %91, label %97, label %92

92:                                               ; preds = %84
  %93 = load ptr, ptr %33, align 8, !tbaa !45
  %94 = load ptr, ptr %93, align 8, !tbaa !40
  %95 = getelementptr inbounds i8, ptr %94, i64 72
  %96 = load ptr, ptr %95, align 8
  call void %96(ptr noundef nonnull align 8 dereferenceable(196) %93, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %97

97:                                               ; preds = %84, %92
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %98 = load ptr, ptr %32, 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 = call noundef nonnull align 4 dereferenceable(4) ptr %101(ptr noundef nonnull align 8 dereferenceable(196) %98)
  %103 = load i32, ptr %102, align 4, !tbaa !46
  store i32 %103, ptr %2, align 4, !tbaa !46
  %104 = icmp slt i32 %103, 5
  br i1 %104, label %110, label %105

105:                                              ; preds = %97
  %106 = load ptr, ptr %33, align 8, !tbaa !45
  %107 = load ptr, ptr %106, align 8, !tbaa !40
  %108 = getelementptr inbounds i8, ptr %107, i64 72
  %109 = load ptr, ptr %108, align 8
  call void %109(ptr noundef nonnull align 8 dereferenceable(196) %106, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %110

110:                                              ; preds = %97, %105
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %111 = load ptr, ptr %32, align 8, !tbaa !51
  %112 = load ptr, ptr %111, align 8, !tbaa !40
  %113 = getelementptr inbounds i8, ptr %112, i64 40
  %114 = load ptr, ptr %113, align 8
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr %114(ptr noundef nonnull align 8 dereferenceable(196) %111)
  %116 = load i32, ptr %115, align 4, !tbaa !46
  store i32 %116, ptr %2, align 4, !tbaa !46
  %117 = icmp slt i32 %116, 5
  br i1 %117, label %123, label %118

118:                                              ; preds = %110
  %119 = load ptr, ptr %33, align 8, !tbaa !45
  %120 = load ptr, ptr %119, align 8, !tbaa !40
  %121 = getelementptr inbounds i8, ptr %120, i64 72
  %122 = load ptr, ptr %121, align 8
  call void %122(ptr noundef nonnull align 8 dereferenceable(196) %119, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %123

123:                                              ; preds = %110, %118
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %124 = load ptr, ptr %32, align 8, !tbaa !51
  %125 = load ptr, ptr %124, align 8, !tbaa !40
  %126 = getelementptr inbounds i8, ptr %125, i64 40
  %127 = load ptr, ptr %126, align 8
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr %127(ptr noundef nonnull align 8 dereferenceable(196) %124)
  %129 = load i32, ptr %128, align 4, !tbaa !46
  store i32 %129, ptr %2, align 4, !tbaa !46
  %130 = icmp slt i32 %129, 5
  br i1 %130, label %136, label %131

131:                                              ; preds = %123
  %132 = load ptr, ptr %33, align 8, !tbaa !45
  %133 = load ptr, ptr %132, align 8, !tbaa !40
  %134 = getelementptr inbounds i8, ptr %133, i64 72
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr noundef nonnull align 8 dereferenceable(196) %132, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %136

136:                                              ; preds = %123, %131
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %137 = load ptr, ptr %32, align 8, !tbaa !51
  %138 = load ptr, ptr %137, align 8, !tbaa !40
  %139 = getelementptr inbounds i8, ptr %138, i64 40
  %140 = load ptr, ptr %139, align 8
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr %140(ptr noundef nonnull align 8 dereferenceable(196) %137)
  %142 = load i32, ptr %141, align 4, !tbaa !46
  store i32 %142, ptr %2, align 4, !tbaa !46
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %.pre11 = load ptr, ptr %32, align 8, !tbaa !51
  %.pre12 = load ptr, ptr %.pre11, align 8, !tbaa !40
  %.phi.trans.insert13 = getelementptr inbounds i8, ptr %.pre12, i64 40
  %.pre14 = load ptr, ptr %.phi.trans.insert13, align 8
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr %.pre14(ptr noundef nonnull align 8 dereferenceable(196) %.pre11)
  %144 = load i32, ptr %143, align 4, !tbaa !46
  store i32 %144, ptr %2, align 4, !tbaa !46
  %145 = icmp slt i32 %144, 5
  br i1 %145, label %151, label %146

146:                                              ; preds = %136
  %147 = load ptr, ptr %33, align 8, !tbaa !45
  %148 = load ptr, ptr %147, align 8, !tbaa !40
  %149 = getelementptr inbounds i8, ptr %148, i64 72
  %150 = load ptr, ptr %149, align 8
  call void %150(ptr noundef nonnull align 8 dereferenceable(196) %147, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %151

151:                                              ; preds = %136, %146
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %152 = load ptr, ptr %32, align 8, !tbaa !51
  %153 = load ptr, ptr %152, align 8, !tbaa !40
  %154 = getelementptr inbounds i8, ptr %153, i64 40
  %155 = load ptr, ptr %154, align 8
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr %155(ptr noundef nonnull align 8 dereferenceable(196) %152)
  %157 = load i32, ptr %156, align 4, !tbaa !46
  store i32 %157, ptr %2, align 4, !tbaa !46
  %158 = icmp slt i32 %157, 5
  br i1 %158, label %164, label %159

159:                                              ; preds = %151
  %160 = load ptr, ptr %33, align 8, !tbaa !45
  %161 = load ptr, ptr %160, align 8, !tbaa !40
  %162 = getelementptr inbounds i8, ptr %161, i64 72
  %163 = load ptr, ptr %162, align 8
  call void %163(ptr noundef nonnull align 8 dereferenceable(196) %160, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %164

164:                                              ; preds = %151, %159
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %165 = load ptr, ptr %31, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  store i8 0, ptr %6, align 1, !tbaa !42
  %166 = load ptr, ptr %165, align 8, !tbaa !40
  %167 = getelementptr inbounds i8, ptr %166, i64 112
  %168 = load ptr, ptr %167, align 8
  call void %168(ptr noundef nonnull align 8 dereferenceable(224) %165, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 5)
  %169 = load ptr, ptr %31, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #3
  store i8 1, ptr %7, align 1, !tbaa !42
  %170 = load ptr, ptr %169, align 8, !tbaa !40
  %171 = getelementptr inbounds i8, ptr %170, i64 112
  %172 = load ptr, ptr %171, align 8
  call void %172(ptr noundef nonnull align 8 dereferenceable(224) %169, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %173 = load ptr, ptr %32, align 8, !tbaa !51
  %174 = load ptr, ptr %173, align 8, !tbaa !40
  %175 = getelementptr inbounds i8, ptr %174, i64 40
  %176 = load ptr, ptr %175, align 8
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr %176(ptr noundef nonnull align 8 dereferenceable(196) %173)
  %178 = load i32, ptr %177, align 4, !tbaa !46
  store i32 %178, ptr %2, align 4, !tbaa !46
  %179 = icmp eq i32 %178, 7
  br i1 %179, label %.loopexit, label %180

180:                                              ; preds = %164
  %181 = load ptr, ptr %33, align 8, !tbaa !45
  %182 = load ptr, ptr %181, align 8, !tbaa !40
  %183 = getelementptr inbounds i8, ptr %182, i64 72
  %184 = load ptr, ptr %183, align 8
  call void %184(ptr noundef nonnull align 8 dereferenceable(196) %181, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %185 = load ptr, ptr %32, align 8, !tbaa !51
  %186 = load ptr, ptr %185, align 8, !tbaa !40
  %187 = getelementptr inbounds i8, ptr %186, i64 40
  %188 = load ptr, ptr %187, align 8
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr %188(ptr noundef nonnull align 8 dereferenceable(196) %185)
  %190 = load i32, ptr %189, align 4, !tbaa !46
  store i32 %190, ptr %2, align 4, !tbaa !46
  %191 = icmp eq i32 %190, 7
  br i1 %191, label %.loopexit, label %192

192:                                              ; preds = %180
  %193 = load ptr, ptr %33, align 8, !tbaa !45
  %194 = load ptr, ptr %193, align 8, !tbaa !40
  %195 = getelementptr inbounds i8, ptr %194, i64 72
  %196 = load ptr, ptr %195, align 8
  call void %196(ptr noundef nonnull align 8 dereferenceable(196) %193, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %197 = load ptr, ptr %32, align 8, !tbaa !51
  %198 = load ptr, ptr %197, align 8, !tbaa !40
  %199 = getelementptr inbounds i8, ptr %198, i64 40
  %200 = load ptr, ptr %199, align 8
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr %200(ptr noundef nonnull align 8 dereferenceable(196) %197)
  %202 = load i32, ptr %201, align 4, !tbaa !46
  store i32 %202, ptr %2, align 4, !tbaa !46
  %203 = icmp eq i32 %202, 7
  br i1 %203, label %.loopexit, label %204

204:                                              ; preds = %192
  %205 = load ptr, ptr %33, align 8, !tbaa !45
  %206 = load ptr, ptr %205, align 8, !tbaa !40
  %207 = getelementptr inbounds i8, ptr %206, i64 72
  %208 = load ptr, ptr %207, align 8
  call void %208(ptr noundef nonnull align 8 dereferenceable(196) %205, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %209 = load ptr, ptr %32, align 8, !tbaa !51
  %210 = load ptr, ptr %209, align 8, !tbaa !40
  %211 = getelementptr inbounds i8, ptr %210, i64 40
  %212 = load ptr, ptr %211, align 8
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr %212(ptr noundef nonnull align 8 dereferenceable(196) %209)
  %214 = load i32, ptr %213, align 4, !tbaa !46
  store i32 %214, ptr %2, align 4, !tbaa !46
  %215 = icmp eq i32 %214, 7
  br i1 %215, label %.loopexit, label %216

216:                                              ; preds = %204
  %217 = load ptr, ptr %33, align 8, !tbaa !45
  %218 = load ptr, ptr %217, align 8, !tbaa !40
  %219 = getelementptr inbounds i8, ptr %218, i64 72
  %220 = load ptr, ptr %219, align 8
  call void %220(ptr noundef nonnull align 8 dereferenceable(196) %217, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %221 = load ptr, ptr %32, align 8, !tbaa !51
  %222 = load ptr, ptr %221, align 8, !tbaa !40
  %223 = getelementptr inbounds i8, ptr %222, i64 40
  %224 = load ptr, ptr %223, align 8
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr %224(ptr noundef nonnull align 8 dereferenceable(196) %221)
  %226 = load i32, ptr %225, align 4, !tbaa !46
  store i32 %226, ptr %2, align 4, !tbaa !46
  %227 = icmp eq i32 %226, 7
  br i1 %227, label %.loopexit, label %228

228:                                              ; preds = %216
  %229 = load ptr, ptr %33, align 8, !tbaa !45
  %230 = load ptr, ptr %229, align 8, !tbaa !40
  %231 = getelementptr inbounds i8, ptr %230, i64 72
  %232 = load ptr, ptr %231, align 8
  call void %232(ptr noundef nonnull align 8 dereferenceable(196) %229, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %233 = load ptr, ptr %32, align 8, !tbaa !51
  %234 = load ptr, ptr %233, align 8, !tbaa !40
  %235 = getelementptr inbounds i8, ptr %234, i64 40
  %236 = load ptr, ptr %235, align 8
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr %236(ptr noundef nonnull align 8 dereferenceable(196) %233)
  %238 = load i32, ptr %237, align 4, !tbaa !46
  store i32 %238, ptr %2, align 4, !tbaa !46
  %239 = icmp eq i32 %238, 7
  br i1 %239, label %.loopexit, label %240

240:                                              ; preds = %228
  %241 = load ptr, ptr %33, align 8, !tbaa !45
  %242 = load ptr, ptr %241, align 8, !tbaa !40
  %243 = getelementptr inbounds i8, ptr %242, i64 72
  %244 = load ptr, ptr %243, align 8
  call void %244(ptr noundef nonnull align 8 dereferenceable(196) %241, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %245 = load ptr, ptr %32, align 8, !tbaa !51
  %246 = load ptr, ptr %245, align 8, !tbaa !40
  %247 = getelementptr inbounds i8, ptr %246, i64 40
  %248 = load ptr, ptr %247, align 8
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr %248(ptr noundef nonnull align 8 dereferenceable(196) %245)
  %250 = load i32, ptr %249, align 4, !tbaa !46
  store i32 %250, ptr %2, align 4, !tbaa !46
  %251 = icmp eq i32 %250, 7
  br i1 %251, label %.loopexit, label %252

252:                                              ; preds = %240
  %253 = load ptr, ptr %33, align 8, !tbaa !45
  %254 = load ptr, ptr %253, align 8, !tbaa !40
  %255 = getelementptr inbounds i8, ptr %254, i64 72
  %256 = load ptr, ptr %255, align 8
  call void %256(ptr noundef nonnull align 8 dereferenceable(196) %253, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %257 = load ptr, ptr %32, align 8, !tbaa !51
  %258 = load ptr, ptr %257, align 8, !tbaa !40
  %259 = getelementptr inbounds i8, ptr %258, i64 40
  %260 = load ptr, ptr %259, align 8
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr %260(ptr noundef nonnull align 8 dereferenceable(196) %257)
  %262 = load i32, ptr %261, align 4, !tbaa !46
  store i32 %262, ptr %2, align 4, !tbaa !46
  %263 = icmp eq i32 %262, 7
  br i1 %263, label %.loopexit, label %264

264:                                              ; preds = %252
  %265 = load ptr, ptr %33, align 8, !tbaa !45
  %266 = load ptr, ptr %265, align 8, !tbaa !40
  %267 = getelementptr inbounds i8, ptr %266, i64 72
  %268 = load ptr, ptr %267, align 8
  call void %268(ptr noundef nonnull align 8 dereferenceable(196) %265, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %269 = load ptr, ptr %32, align 8, !tbaa !51
  %270 = load ptr, ptr %269, align 8, !tbaa !40
  %271 = getelementptr inbounds i8, ptr %270, i64 40
  %272 = load ptr, ptr %271, align 8
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr %272(ptr noundef nonnull align 8 dereferenceable(196) %269)
  %274 = load i32, ptr %273, align 4, !tbaa !46
  store i32 %274, ptr %2, align 4, !tbaa !46
  %275 = icmp eq i32 %274, 7
  br i1 %275, label %.loopexit, label %276

276:                                              ; preds = %264
  %277 = load ptr, ptr %33, align 8, !tbaa !45
  %278 = load ptr, ptr %277, align 8, !tbaa !40
  %279 = getelementptr inbounds i8, ptr %278, i64 72
  %280 = load ptr, ptr %279, align 8
  call void %280(ptr noundef nonnull align 8 dereferenceable(196) %277, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %281 = load ptr, ptr %32, align 8, !tbaa !51
  %282 = load ptr, ptr %281, align 8, !tbaa !40
  %283 = getelementptr inbounds i8, ptr %282, i64 40
  %284 = load ptr, ptr %283, align 8
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr %284(ptr noundef nonnull align 8 dereferenceable(196) %281)
  %286 = load i32, ptr %285, align 4, !tbaa !46
  store i32 %286, ptr %2, align 4, !tbaa !46
  %287 = icmp eq i32 %286, 7
  br i1 %287, label %.loopexit, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %276
  %288 = load ptr, ptr %33, align 8, !tbaa !45
  %289 = load ptr, ptr %288, align 8, !tbaa !40
  %290 = getelementptr inbounds i8, ptr %289, i64 72
  %291 = load ptr, ptr %290, align 8
  call void %291(ptr noundef nonnull align 8 dereferenceable(196) %288, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %.loopexit

.loopexit:                                        ; preds = %164, %180, %192, %204, %216, %228, %240, %252, %264, %276, %.loopexit.loopexit
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %292 = load ptr, ptr %31, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
  store i8 0, ptr %8, align 1, !tbaa !42
  %293 = load ptr, ptr %292, align 8, !tbaa !40
  %294 = getelementptr inbounds i8, ptr %293, i64 112
  %295 = load ptr, ptr %294, align 8
  call void %295(ptr noundef nonnull align 8 dereferenceable(224) %292, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  br label %34, !llvm.loop !52
}

; 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 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 void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232), 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 = { 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 = !{!"_ZTS8for_exit", !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}


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