; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/cae_test/general/control/loop/while_fsm/while_9acf38f1 (fsm5entryEv)

; 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.while_fsm = 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 @_ZN9while_fsm5entryEv(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
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = 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
  %14 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 2
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %15, align 8, !tbaa !41
  %17 = getelementptr inbounds ptr, ptr %16, i64 7
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr %18(ptr noundef nonnull align 8 dereferenceable(224) %15)
  %20 = load i8, ptr %19, align 1, !tbaa !43, !range !44, !noundef !45
  %21 = trunc i8 %20 to i1
  %22 = zext i1 %21 to i32
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %24, label %35

24:                                               ; preds = %1
  %25 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 6
  %26 = load ptr, ptr %25, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 0, ptr %5, align 4, !tbaa !47
  %27 = load ptr, ptr %26, align 8, !tbaa !41
  %28 = getelementptr inbounds ptr, ptr %27, i64 9
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(196) %26, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  %30 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #2
  store i8 0, ptr %6, align 1, !tbaa !43
  %32 = load ptr, ptr %31, align 8, !tbaa !41
  %33 = getelementptr inbounds ptr, ptr %32, i64 14
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr noundef nonnull align 8 dereferenceable(224) %31, 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) %13)
  br label %36

35:                                               ; preds = %1
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %36

36:                                               ; preds = %35, %24
  br label %37

37:                                               ; preds = %157, %36
  br label %38

38:                                               ; preds = %37
  br label %39

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

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

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

57:                                               ; preds = %60, %51
  %58 = load i32, ptr %3, align 4, !tbaa !47
  %59 = icmp sle i32 %58, 10
  br i1 %59, label %60, label %75

60:                                               ; preds = %57
  %61 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !52
  %63 = load ptr, ptr %62, align 8, !tbaa !41
  %64 = getelementptr inbounds ptr, ptr %63, i64 5
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr %65(ptr noundef nonnull align 8 dereferenceable(196) %62)
  %67 = load i32, ptr %66, align 4, !tbaa !47
  store i32 %67, ptr %4, align 4, !tbaa !47
  %68 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 6
  %69 = load ptr, ptr %68, align 8, !tbaa !46
  %70 = load ptr, ptr %69, align 8, !tbaa !41
  %71 = getelementptr inbounds ptr, ptr %70, i64 9
  %72 = load ptr, ptr %71, align 8
  call void %72(ptr noundef nonnull align 8 dereferenceable(196) %69, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %73 = load i32, ptr %3, align 4, !tbaa !47
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %3, align 4, !tbaa !47
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %57, !llvm.loop !53

75:                                               ; preds = %57
  %76 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #2
  store i8 0, ptr %8, align 1, !tbaa !43
  %78 = load ptr, ptr %77, align 8, !tbaa !41
  %79 = getelementptr inbounds ptr, ptr %78, i64 14
  %80 = load ptr, ptr %79, align 8
  call void %80(ptr noundef nonnull align 8 dereferenceable(224) %77, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  %81 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %82 = load ptr, ptr %81, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #2
  store i8 1, ptr %9, 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
  call void %85(ptr noundef nonnull align 8 dereferenceable(224) %82, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #2
  store i32 0, ptr %3, align 4, !tbaa !47
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %86

86:                                               ; preds = %120, %75
  %87 = load i32, ptr %3, align 4, !tbaa !47
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %3, align 4, !tbaa !47
  %89 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !52
  %91 = load ptr, ptr %90, align 8, !tbaa !41
  %92 = getelementptr inbounds ptr, ptr %91, i64 5
  %93 = load ptr, ptr %92, align 8
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr %93(ptr noundef nonnull align 8 dereferenceable(196) %90)
  %95 = load i32, ptr %94, align 4, !tbaa !47
  store i32 %95, ptr %4, align 4, !tbaa !47
  %96 = load i32, ptr %3, align 4, !tbaa !47
  %97 = icmp eq i32 %96, 8
  br i1 %97, label %98, label %99

98:                                               ; preds = %86
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %120

99:                                               ; preds = %86
  %100 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !52
  %102 = load ptr, ptr %101, align 8, !tbaa !41
  %103 = getelementptr inbounds ptr, ptr %102, i64 5
  %104 = load ptr, ptr %103, align 8
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr %104(ptr noundef nonnull align 8 dereferenceable(196) %101)
  %106 = load i32, ptr %105, align 4, !tbaa !47
  %107 = icmp slt i32 %106, 5
  br i1 %107, label %108, label %112

108:                                              ; preds = %99
  %109 = load i32, ptr %3, align 4, !tbaa !47
  %110 = icmp ne i32 %109, 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %120

112:                                              ; preds = %108, %99
  %113 = getelementptr inbounds %struct.while_fsm, ptr %13, 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) %13)
  br label %118

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119, %111, %98
  %121 = load i32, ptr %3, align 4, !tbaa !47
  %122 = icmp sle i32 %121, 10
  br i1 %122, label %86, label %123, !llvm.loop !54

123:                                              ; preds = %120
  %124 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %125 = load ptr, ptr %124, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #2
  store i8 0, ptr %10, align 1, !tbaa !43
  %126 = load ptr, ptr %125, align 8, !tbaa !41
  %127 = getelementptr inbounds ptr, ptr %126, i64 14
  %128 = load ptr, ptr %127, align 8
  call void %128(ptr noundef nonnull align 8 dereferenceable(224) %125, 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) %13)
  call void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %13, i32 noundef 3)
  %129 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %130 = load ptr, ptr %129, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #2
  store i8 1, ptr %11, align 1, !tbaa !43
  %131 = load ptr, ptr %130, align 8, !tbaa !41
  %132 = getelementptr inbounds ptr, ptr %131, i64 14
  %133 = load ptr, ptr %132, align 8
  call void %133(ptr noundef nonnull align 8 dereferenceable(224) %130, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #2
  store i32 0, ptr %3, align 4, !tbaa !47
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %134

134:                                              ; preds = %154, %123
  %135 = load i32, ptr %3, align 4, !tbaa !47
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %3, align 4, !tbaa !47
  %137 = getelementptr inbounds %struct.while_fsm, ptr %13, 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 = call noundef nonnull align 4 dereferenceable(4) ptr %141(ptr noundef nonnull align 8 dereferenceable(196) %138)
  %143 = load i32, ptr %142, align 4, !tbaa !47
  store i32 %143, ptr %4, align 4, !tbaa !47
  %144 = load i32, ptr %4, align 4, !tbaa !47
  %145 = icmp eq i32 %144, 7
  br i1 %145, label %146, label %147

146:                                              ; preds = %134
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %157

147:                                              ; preds = %134
  %148 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 6
  %149 = load ptr, ptr %148, align 8, !tbaa !46
  %150 = load ptr, ptr %149, align 8, !tbaa !41
  %151 = getelementptr inbounds ptr, ptr %150, i64 9
  %152 = load ptr, ptr %151, align 8
  call void %152(ptr noundef nonnull align 8 dereferenceable(196) %149, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %153

153:                                              ; preds = %147
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %3, align 4, !tbaa !47
  %156 = icmp sle i32 %155, 10
  br i1 %156, label %134, label %157, !llvm.loop !55

157:                                              ; preds = %154, %146
  %158 = getelementptr inbounds %struct.while_fsm, ptr %13, i32 0, i32 5
  %159 = load ptr, ptr %158, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #2
  store i8 0, ptr %12, align 1, !tbaa !43
  %160 = load ptr, ptr %159, align 8, !tbaa !41
  %161 = getelementptr inbounds ptr, ptr %160, i64 14
  %162 = load ptr, ptr %161, align 8
  call void %162(ptr noundef nonnull align 8 dereferenceable(224) %159, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br label %37, !llvm.loop !56
}

; 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 = !{!"_ZTS9while_fsm", !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"

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN9while_fsm5entryEv(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
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 416
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !40
  %14 = getelementptr inbounds i8, ptr %13, i64 56
  %15 = load ptr, ptr %14, align 8
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr %15(ptr noundef nonnull align 8 dereferenceable(224) %12)
  %17 = load i8, ptr %16, align 1, !tbaa !42, !range !43, !noundef !44
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %30

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 448
  %21 = load ptr, ptr %20, 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
  %22 = load ptr, ptr %21, align 8, !tbaa !40
  %23 = getelementptr inbounds i8, ptr %22, i64 72
  %24 = load ptr, ptr %23, align 8
  call void %24(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %25 = getelementptr inbounds i8, ptr %0, i64 440
  %26 = load ptr, ptr %25, 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
  %27 = load ptr, ptr %26, align 8, !tbaa !40
  %28 = getelementptr inbounds i8, ptr %27, i64 112
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(224) %26, 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 %31

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

31:                                               ; preds = %30, %19
  %32 = getelementptr inbounds i8, ptr %0, i64 424
  %33 = getelementptr inbounds i8, ptr %0, i64 440
  %34 = getelementptr inbounds i8, ptr %0, i64 432
  %35 = getelementptr inbounds i8, ptr %0, i64 448
  br label %36

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

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

._crit_edge:                                      ; preds = %.lr.ph, %36
  %51 = load ptr, ptr %33, 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
  %52 = load ptr, ptr %51, align 8, !tbaa !40
  %53 = getelementptr inbounds i8, ptr %52, i64 112
  %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) %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)
  %55 = load ptr, ptr %34, align 8, !tbaa !51
  %56 = load ptr, ptr %55, align 8, !tbaa !40
  %57 = getelementptr inbounds i8, ptr %56, i64 40
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr %58(ptr noundef nonnull align 8 dereferenceable(196) %55)
  %60 = load i32, ptr %59, align 4, !tbaa !46
  store i32 %60, ptr %2, align 4, !tbaa !46
  %61 = load ptr, ptr %35, align 8, !tbaa !45
  %62 = load ptr, ptr %61, align 8, !tbaa !40
  %63 = getelementptr inbounds i8, ptr %62, i64 72
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(196) %61, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %65 = load ptr, ptr %34, 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 = call noundef nonnull align 4 dereferenceable(4) ptr %68(ptr noundef nonnull align 8 dereferenceable(196) %65)
  %70 = load i32, ptr %69, align 4, !tbaa !46
  store i32 %70, ptr %2, align 4, !tbaa !46
  %71 = load ptr, ptr %35, align 8, !tbaa !45
  %72 = load ptr, ptr %71, align 8, !tbaa !40
  %73 = getelementptr inbounds i8, ptr %72, i64 72
  %74 = load ptr, ptr %73, align 8
  call void %74(ptr noundef nonnull align 8 dereferenceable(196) %71, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %75 = load ptr, ptr %34, align 8, !tbaa !51
  %76 = load ptr, ptr %75, align 8, !tbaa !40
  %77 = getelementptr inbounds i8, ptr %76, i64 40
  %78 = load ptr, ptr %77, align 8
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr %78(ptr noundef nonnull align 8 dereferenceable(196) %75)
  %80 = load i32, ptr %79, align 4, !tbaa !46
  store i32 %80, ptr %2, align 4, !tbaa !46
  %81 = load ptr, ptr %35, align 8, !tbaa !45
  %82 = load ptr, ptr %81, align 8, !tbaa !40
  %83 = getelementptr inbounds i8, ptr %82, i64 72
  %84 = load ptr, ptr %83, align 8
  call void %84(ptr noundef nonnull align 8 dereferenceable(196) %81, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %85 = load ptr, ptr %34, 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 = load ptr, ptr %35, align 8, !tbaa !45
  %92 = load ptr, ptr %91, align 8, !tbaa !40
  %93 = getelementptr inbounds i8, ptr %92, i64 72
  %94 = load ptr, ptr %93, align 8
  call void %94(ptr noundef nonnull align 8 dereferenceable(196) %91, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %95 = load ptr, ptr %34, align 8, !tbaa !51
  %96 = load ptr, ptr %95, align 8, !tbaa !40
  %97 = getelementptr inbounds i8, ptr %96, i64 40
  %98 = load ptr, ptr %97, align 8
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr %98(ptr noundef nonnull align 8 dereferenceable(196) %95)
  %100 = load i32, ptr %99, align 4, !tbaa !46
  store i32 %100, ptr %2, align 4, !tbaa !46
  %101 = load ptr, ptr %35, align 8, !tbaa !45
  %102 = load ptr, ptr %101, align 8, !tbaa !40
  %103 = getelementptr inbounds i8, ptr %102, i64 72
  %104 = load ptr, ptr %103, align 8
  call void %104(ptr noundef nonnull align 8 dereferenceable(196) %101, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %105 = load ptr, ptr %34, align 8, !tbaa !51
  %106 = load ptr, ptr %105, align 8, !tbaa !40
  %107 = getelementptr inbounds i8, ptr %106, i64 40
  %108 = load ptr, ptr %107, align 8
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr %108(ptr noundef nonnull align 8 dereferenceable(196) %105)
  %110 = load i32, ptr %109, align 4, !tbaa !46
  store i32 %110, ptr %2, align 4, !tbaa !46
  %111 = load ptr, ptr %35, align 8, !tbaa !45
  %112 = load ptr, ptr %111, align 8, !tbaa !40
  %113 = getelementptr inbounds i8, ptr %112, i64 72
  %114 = load ptr, ptr %113, align 8
  call void %114(ptr noundef nonnull align 8 dereferenceable(196) %111, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %115 = load ptr, ptr %34, align 8, !tbaa !51
  %116 = load ptr, ptr %115, align 8, !tbaa !40
  %117 = getelementptr inbounds i8, ptr %116, i64 40
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr %118(ptr noundef nonnull align 8 dereferenceable(196) %115)
  %120 = load i32, ptr %119, align 4, !tbaa !46
  store i32 %120, ptr %2, align 4, !tbaa !46
  %121 = load ptr, ptr %35, align 8, !tbaa !45
  %122 = load ptr, ptr %121, align 8, !tbaa !40
  %123 = getelementptr inbounds i8, ptr %122, i64 72
  %124 = load ptr, ptr %123, align 8
  call void %124(ptr noundef nonnull align 8 dereferenceable(196) %121, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %125 = load ptr, ptr %34, align 8, !tbaa !51
  %126 = load ptr, ptr %125, align 8, !tbaa !40
  %127 = getelementptr inbounds i8, ptr %126, i64 40
  %128 = load ptr, ptr %127, align 8
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr %128(ptr noundef nonnull align 8 dereferenceable(196) %125)
  %130 = load i32, ptr %129, align 4, !tbaa !46
  store i32 %130, ptr %2, align 4, !tbaa !46
  %131 = load ptr, ptr %35, align 8, !tbaa !45
  %132 = load ptr, ptr %131, align 8, !tbaa !40
  %133 = getelementptr inbounds i8, ptr %132, i64 72
  %134 = load ptr, ptr %133, align 8
  call void %134(ptr noundef nonnull align 8 dereferenceable(196) %131, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %135 = load ptr, ptr %34, align 8, !tbaa !51
  %136 = load ptr, ptr %135, align 8, !tbaa !40
  %137 = getelementptr inbounds i8, ptr %136, i64 40
  %138 = load ptr, ptr %137, align 8
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr %138(ptr noundef nonnull align 8 dereferenceable(196) %135)
  %140 = load i32, ptr %139, align 4, !tbaa !46
  store i32 %140, ptr %2, align 4, !tbaa !46
  %141 = load ptr, ptr %35, align 8, !tbaa !45
  %142 = load ptr, ptr %141, align 8, !tbaa !40
  %143 = getelementptr inbounds i8, ptr %142, i64 72
  %144 = load ptr, ptr %143, align 8
  call void %144(ptr noundef nonnull align 8 dereferenceable(196) %141, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %145 = load ptr, ptr %34, align 8, !tbaa !51
  %146 = load ptr, ptr %145, align 8, !tbaa !40
  %147 = getelementptr inbounds i8, ptr %146, i64 40
  %148 = load ptr, ptr %147, align 8
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr %148(ptr noundef nonnull align 8 dereferenceable(196) %145)
  %150 = load i32, ptr %149, align 4, !tbaa !46
  store i32 %150, ptr %2, align 4, !tbaa !46
  %151 = load ptr, ptr %35, align 8, !tbaa !45
  %152 = load ptr, ptr %151, align 8, !tbaa !40
  %153 = getelementptr inbounds i8, ptr %152, i64 72
  %154 = load ptr, ptr %153, align 8
  call void %154(ptr noundef nonnull align 8 dereferenceable(196) %151, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %155 = load ptr, ptr %33, 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
  %156 = load ptr, ptr %155, align 8, !tbaa !40
  %157 = getelementptr inbounds i8, ptr %156, i64 112
  %158 = load ptr, ptr %157, align 8
  call void %158(ptr noundef nonnull align 8 dereferenceable(224) %155, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %159 = load ptr, ptr %33, 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
  %160 = load ptr, ptr %159, align 8, !tbaa !40
  %161 = getelementptr inbounds i8, ptr %160, i64 112
  %162 = load ptr, ptr %161, align 8
  call void %162(ptr noundef nonnull align 8 dereferenceable(224) %159, 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)
  br label %163

163:                                              ; preds = %186, %._crit_edge
  %.1 = phi i32 [ 0, %._crit_edge ], [ %164, %186 ]
  %164 = add nuw nsw i32 %.1, 1
  %165 = load ptr, ptr %34, align 8, !tbaa !51
  %166 = load ptr, ptr %165, align 8, !tbaa !40
  %167 = getelementptr inbounds i8, ptr %166, i64 40
  %168 = load ptr, ptr %167, align 8
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr %168(ptr noundef nonnull align 8 dereferenceable(196) %165)
  %170 = load i32, ptr %169, align 4, !tbaa !46
  store i32 %170, ptr %2, align 4, !tbaa !46
  %171 = icmp eq i32 %164, 8
  br i1 %171, label %186, label %172

172:                                              ; preds = %163
  %173 = load ptr, ptr %34, 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
  %179 = icmp slt i32 %178, 5
  %180 = icmp ne i32 %.1, 0
  %or.cond = select i1 %179, i1 %180, i1 false
  br i1 %or.cond, label %186, label %181

181:                                              ; preds = %172
  %182 = load ptr, ptr %35, align 8, !tbaa !45
  %183 = load ptr, ptr %182, align 8, !tbaa !40
  %184 = getelementptr inbounds i8, ptr %183, i64 72
  %185 = load ptr, ptr %184, align 8
  call void %185(ptr noundef nonnull align 8 dereferenceable(196) %182, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %186

186:                                              ; preds = %172, %163, %181
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %exitcond.not = icmp eq i32 %164, 11
  br i1 %exitcond.not, label %187, label %163, !llvm.loop !52

187:                                              ; preds = %186
  %188 = load ptr, ptr %33, 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
  %189 = load ptr, ptr %188, align 8, !tbaa !40
  %190 = getelementptr inbounds i8, ptr %189, i64 112
  %191 = load ptr, ptr %190, align 8
  call void %191(ptr noundef nonnull align 8 dereferenceable(224) %188, 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)
  call void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 3)
  %192 = load ptr, ptr %33, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  store i8 1, ptr %9, align 1, !tbaa !42
  %193 = load ptr, ptr %192, align 8, !tbaa !40
  %194 = getelementptr inbounds i8, ptr %193, i64 112
  %195 = load ptr, ptr %194, align 8
  call void %195(ptr noundef nonnull align 8 dereferenceable(224) %192, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %196 = load ptr, ptr %34, align 8, !tbaa !51
  %197 = load ptr, ptr %196, align 8, !tbaa !40
  %198 = getelementptr inbounds i8, ptr %197, i64 40
  %199 = load ptr, ptr %198, align 8
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr %199(ptr noundef nonnull align 8 dereferenceable(196) %196)
  %201 = load i32, ptr %200, align 4, !tbaa !46
  store i32 %201, ptr %2, align 4, !tbaa !46
  %202 = icmp eq i32 %201, 7
  br i1 %202, label %.loopexit, label %203

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

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

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

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

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

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

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

287:                                              ; preds = %275
  %288 = load ptr, ptr %35, 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)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %292 = load ptr, ptr %34, align 8, !tbaa !51
  %293 = load ptr, ptr %292, align 8, !tbaa !40
  %294 = getelementptr inbounds i8, ptr %293, i64 40
  %295 = load ptr, ptr %294, align 8
  %296 = call noundef nonnull align 4 dereferenceable(4) ptr %295(ptr noundef nonnull align 8 dereferenceable(196) %292)
  %297 = load i32, ptr %296, align 4, !tbaa !46
  store i32 %297, ptr %2, align 4, !tbaa !46
  %298 = icmp eq i32 %297, 7
  br i1 %298, label %.loopexit, label %299

299:                                              ; preds = %287
  %300 = load ptr, ptr %35, align 8, !tbaa !45
  %301 = load ptr, ptr %300, align 8, !tbaa !40
  %302 = getelementptr inbounds i8, ptr %301, i64 72
  %303 = load ptr, ptr %302, align 8
  call void %303(ptr noundef nonnull align 8 dereferenceable(196) %300, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %304 = load ptr, ptr %34, align 8, !tbaa !51
  %305 = load ptr, ptr %304, align 8, !tbaa !40
  %306 = getelementptr inbounds i8, ptr %305, i64 40
  %307 = load ptr, ptr %306, align 8
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr %307(ptr noundef nonnull align 8 dereferenceable(196) %304)
  %309 = load i32, ptr %308, align 4, !tbaa !46
  store i32 %309, ptr %2, align 4, !tbaa !46
  %310 = icmp eq i32 %309, 7
  br i1 %310, label %.loopexit, label %311

311:                                              ; preds = %299
  %312 = load ptr, ptr %35, align 8, !tbaa !45
  %313 = load ptr, ptr %312, align 8, !tbaa !40
  %314 = getelementptr inbounds i8, ptr %313, i64 72
  %315 = load ptr, ptr %314, align 8
  call void %315(ptr noundef nonnull align 8 dereferenceable(196) %312, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %316 = load ptr, ptr %34, align 8, !tbaa !51
  %317 = load ptr, ptr %316, align 8, !tbaa !40
  %318 = getelementptr inbounds i8, ptr %317, i64 40
  %319 = load ptr, ptr %318, align 8
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr %319(ptr noundef nonnull align 8 dereferenceable(196) %316)
  %321 = load i32, ptr %320, align 4, !tbaa !46
  store i32 %321, ptr %2, align 4, !tbaa !46
  %322 = icmp eq i32 %321, 7
  br i1 %322, label %.loopexit, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %311
  %323 = load ptr, ptr %35, align 8, !tbaa !45
  %324 = load ptr, ptr %323, align 8, !tbaa !40
  %325 = getelementptr inbounds i8, ptr %324, i64 72
  %326 = load ptr, ptr %325, align 8
  call void %326(ptr noundef nonnull align 8 dereferenceable(196) %323, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %.loopexit

.loopexit:                                        ; preds = %187, %203, %215, %227, %239, %251, %263, %275, %287, %299, %311, %.loopexit.loopexit
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %327 = load ptr, ptr %33, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #3
  store i8 0, ptr %10, align 1, !tbaa !42
  %328 = load ptr, ptr %327, align 8, !tbaa !40
  %329 = getelementptr inbounds i8, ptr %328, i64 112
  %330 = load ptr, ptr %329, align 8
  call void %330(ptr noundef nonnull align 8 dereferenceable(224) %327, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  br label %36, !llvm.loop !53
}

; 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 = !{!"_ZTS9while_fsm", !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,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass