; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/synth/synth_gnats/pr-207/pr-207_blast/pr-207_b_aa41b2b6 (ZN5pr2075entryEv)

; 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.my_pair = type { i8, i8 }
%struct.pr207 = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, ptr, ptr, ptr, 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 @_ZN5pr2075entryEv(ptr noundef nonnull align 8 dereferenceable(488) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [10 x %struct.my_pair], align 16
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  store i8 1, ptr %4, align 1, !tbaa !9
  %12 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 10
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %13, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 0, ptr %5, align 1, !tbaa !42
  %15 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 8
  %16 = load ptr, ptr %15, align 8, !tbaa !43
  %17 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %16, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  store i8 0, ptr %6, align 1, !tbaa !42
  %18 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 9
  %19 = load ptr, ptr %18, align 8, !tbaa !44
  %20 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %19, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %21

21:                                               ; preds = %32, %1
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %24, %22
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  br label %24

24:                                               ; preds = %23
  %25 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 3
  %26 = load ptr, ptr %25, align 8, !tbaa !45
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %26)
  %28 = load i8, ptr %27, align 1, !tbaa !9, !range !46, !noundef !47
  %29 = trunc i8 %28 to i1
  %30 = zext i1 %29 to i32
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %23, label %32, !llvm.loop !48

32:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 0, ptr %7, align 1, !tbaa !9
  %33 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 10
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %34, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  %36 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !50
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEcvRKcEv(ptr noundef nonnull align 8 dereferenceable(193) %37)
  %39 = load i8, ptr %38, align 1, !tbaa !42
  %40 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 6
  %41 = load ptr, ptr %40, align 8, !tbaa !51
  %42 = load ptr, ptr %41, align 8, !tbaa !52
  %43 = getelementptr inbounds ptr, ptr %42, i64 5
  %44 = load ptr, ptr %43, align 8
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr %44(ptr noundef nonnull align 8 dereferenceable(193) %41)
  %46 = load i8, ptr %45, align 1, !tbaa !42
  %47 = zext i8 %46 to i64
  %48 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.my_pair, ptr %48, i32 0, i32 0
  store i8 %39, ptr %49, align 2, !tbaa !54
  %50 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !56
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEcvRKcEv(ptr noundef nonnull align 8 dereferenceable(193) %51)
  %53 = load i8, ptr %52, align 1, !tbaa !42
  %54 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !51
  %56 = load ptr, ptr %55, align 8, !tbaa !52
  %57 = getelementptr inbounds ptr, ptr %56, i64 5
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr %58(ptr noundef nonnull align 8 dereferenceable(193) %55)
  %60 = load i8, ptr %59, align 1, !tbaa !42
  %61 = zext i8 %60 to i64
  %62 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.my_pair, ptr %62, i32 0, i32 1
  store i8 %53, ptr %63, align 1, !tbaa !57
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  %64 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 6
  %65 = load ptr, ptr %64, align 8, !tbaa !51
  %66 = load ptr, ptr %65, align 8, !tbaa !52
  %67 = getelementptr inbounds ptr, ptr %66, i64 5
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr %68(ptr noundef nonnull align 8 dereferenceable(193) %65)
  %70 = load i8, ptr %69, align 1, !tbaa !42
  %71 = zext i8 %70 to i64
  %72 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %71
  %73 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 7
  %74 = load ptr, ptr %73, align 8, !tbaa !58
  %75 = load ptr, ptr %74, align 8, !tbaa !52
  %76 = getelementptr inbounds ptr, ptr %75, i64 5
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr %77(ptr noundef nonnull align 8 dereferenceable(193) %74)
  %79 = load i8, ptr %78, align 1, !tbaa !42
  %80 = zext i8 %79 to i64
  %81 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %81, ptr align 2 %72, i64 2, i1 false), !tbaa.struct !59
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %82 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !58
  %84 = load ptr, ptr %83, align 8, !tbaa !52
  %85 = getelementptr inbounds ptr, ptr %84, i64 5
  %86 = load ptr, ptr %85, align 8
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr %86(ptr noundef nonnull align 8 dereferenceable(193) %83)
  %88 = load i8, ptr %87, align 1, !tbaa !42
  %89 = zext i8 %88 to i64
  %90 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.my_pair, ptr %90, i32 0, i32 1
  %92 = load i8, ptr %91, align 1, !tbaa !57
  store i8 %92, ptr %8, align 1, !tbaa !42
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %93 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 7
  %94 = load ptr, ptr %93, align 8, !tbaa !58
  %95 = load ptr, ptr %94, align 8, !tbaa !52
  %96 = getelementptr inbounds ptr, ptr %95, i64 5
  %97 = load ptr, ptr %96, align 8
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr %97(ptr noundef nonnull align 8 dereferenceable(193) %94)
  %99 = load i8, ptr %98, align 1, !tbaa !42
  %100 = zext i8 %99 to i64
  %101 = getelementptr inbounds [10 x %struct.my_pair], ptr %3, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.my_pair, ptr %101, i32 0, i32 0
  %103 = load i8, ptr %102, align 2, !tbaa !54
  store i8 %103, ptr %9, align 1, !tbaa !42
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %11)
  %104 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 8
  %105 = load ptr, ptr %104, align 8, !tbaa !43
  %106 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %105, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %107 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 9
  %108 = load ptr, ptr %107, align 8, !tbaa !44
  %109 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %108, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  store i8 1, ptr %10, align 1, !tbaa !9
  %110 = getelementptr inbounds %struct.pr207, ptr %11, i32 0, i32 10
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %111, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %21, !llvm.loop !60
}

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 480}
!12 = !{!"_ZTS5pr207", !13, i64 0, !34, i64 232, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480}
!13 = !{!"_ZTSN7sc_core9sc_moduleE", !14, i64 0, !26, i64 112, !27, i64 120, !29, i64 144, !31, i64 168, !10, i64 192, !6, i64 200, !33, i64 208, !6, i64 216, !6, i64 224}
!14 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !15, i64 16, !19, i64 40, !23, i64 64, !6, i64 96, !6, i64 104}
!15 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!27 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !28, i64 8, !6, i64 16}
!28 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!31 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !32, i64 8, !6, i64 16}
!32 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!33 = !{!"int", !7, i64 0}
!34 = !{!"_ZTSN7sc_core5sc_inIbEE", !35, i64 0, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!35 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !36, i64 0}
!36 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !37, i64 0, !6, i64 120, !38, i64 128}
!37 = !{!"_ZTSN7sc_core12sc_port_baseE", !14, i64 0, !6, i64 112}
!38 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!7, !7, i64 0}
!43 = !{!12, !6, i64 464}
!44 = !{!12, !6, i64 472}
!45 = !{!12, !6, i64 424}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!12, !6, i64 432}
!51 = !{!12, !6, i64 448}
!52 = !{!53, !53, i64 0}
!53 = !{!"vtable pointer", !8, i64 0}
!54 = !{!55, !7, i64 0}
!55 = !{!"_ZTS7my_pair", !7, i64 0, !7, i64 1}
!56 = !{!12, !6, i64 440}
!57 = !{!55, !7, i64 1}
!58 = !{!12, !6, i64 456}
!59 = !{i64 0, i64 1, !42, i64 1, i64 1, !42}
!60 = distinct !{!60, !49}


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

%struct.my_pair = type { i8, i8 }

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN5pr2075entryEv(ptr noundef nonnull align 8 dereferenceable(488) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca [10 x %struct.my_pair], align 16
  %3 = alloca i8, align 1
  %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
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  store i8 1, ptr %3, align 1, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 480
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %11, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  store i8 0, ptr %4, align 1, !tbaa !41
  %13 = getelementptr inbounds i8, ptr %0, i64 464
  %14 = load ptr, ptr %13, align 8, !tbaa !42
  %15 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %14, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  store i8 0, ptr %5, align 1, !tbaa !41
  %16 = getelementptr inbounds i8, ptr %0, i64 472
  %17 = load ptr, ptr %16, align 8, !tbaa !43
  %18 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %17, 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)
  %19 = getelementptr inbounds i8, ptr %0, i64 424
  %20 = getelementptr inbounds i8, ptr %0, i64 432
  %21 = getelementptr inbounds i8, ptr %0, i64 448
  %22 = getelementptr inbounds i8, ptr %0, i64 440
  %23 = getelementptr inbounds i8, ptr %0, i64 456
  br label %24

24:                                               ; preds = %.backedge, %1
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %25 = load ptr, ptr %19, align 8, !tbaa !44
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %25)
  %27 = load i8, ptr %26, align 1, !tbaa !5, !range !45, !noundef !46
  %28 = icmp eq i8 %27, 0
  br i1 %28, label %.backedge, label %29

.backedge:                                        ; preds = %24, %29
  br label %24, !llvm.loop !47

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  store i8 0, ptr %6, align 1, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %30, 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)
  %32 = load ptr, ptr %20, align 8, !tbaa !49
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEcvRKcEv(ptr noundef nonnull align 8 dereferenceable(193) %32)
  %34 = load i8, ptr %33, align 1, !tbaa !41
  %35 = load ptr, ptr %21, align 8, !tbaa !50
  %36 = load ptr, ptr %35, align 8, !tbaa !51
  %37 = getelementptr inbounds i8, ptr %36, i64 40
  %38 = load ptr, ptr %37, align 8
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr %38(ptr noundef nonnull align 8 dereferenceable(193) %35)
  %40 = load i8, ptr %39, align 1, !tbaa !41
  %41 = zext i8 %40 to i64
  %42 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %41
  store i8 %34, ptr %42, align 2, !tbaa !53
  %43 = load ptr, ptr %22, align 8, !tbaa !55
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEcvRKcEv(ptr noundef nonnull align 8 dereferenceable(193) %43)
  %45 = load i8, ptr %44, align 1, !tbaa !41
  %46 = load ptr, ptr %21, align 8, !tbaa !50
  %47 = load ptr, ptr %46, align 8, !tbaa !51
  %48 = getelementptr inbounds i8, ptr %47, i64 40
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr %49(ptr noundef nonnull align 8 dereferenceable(193) %46)
  %51 = load i8, ptr %50, align 1, !tbaa !41
  %52 = zext i8 %51 to i64
  %53 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %52, i32 1
  store i8 %45, ptr %53, align 1, !tbaa !56
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %54 = load ptr, ptr %21, align 8, !tbaa !50
  %55 = load ptr, ptr %54, align 8, !tbaa !51
  %56 = getelementptr inbounds i8, ptr %55, i64 40
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr %57(ptr noundef nonnull align 8 dereferenceable(193) %54)
  %59 = load i8, ptr %58, align 1, !tbaa !41
  %60 = zext i8 %59 to i64
  %61 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %60
  %62 = load ptr, ptr %23, align 8, !tbaa !57
  %63 = load ptr, ptr %62, align 8, !tbaa !51
  %64 = getelementptr inbounds i8, ptr %63, i64 40
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr %65(ptr noundef nonnull align 8 dereferenceable(193) %62)
  %67 = load i8, ptr %66, align 1, !tbaa !41
  %68 = zext i8 %67 to i64
  %69 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %68
  %70 = load i16, ptr %61, align 2
  store i16 %70, ptr %69, align 2
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #3
  %71 = load ptr, ptr %23, align 8, !tbaa !57
  %72 = load ptr, ptr %71, align 8, !tbaa !51
  %73 = getelementptr inbounds i8, ptr %72, i64 40
  %74 = load ptr, ptr %73, align 8
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr %74(ptr noundef nonnull align 8 dereferenceable(193) %71)
  %76 = load i8, ptr %75, align 1, !tbaa !41
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %77, i32 1
  %79 = load i8, ptr %78, align 1, !tbaa !56
  store i8 %79, ptr %7, align 1, !tbaa !41
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
  %80 = load ptr, ptr %23, align 8, !tbaa !57
  %81 = load ptr, ptr %80, align 8, !tbaa !51
  %82 = getelementptr inbounds i8, ptr %81, i64 40
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef nonnull align 1 dereferenceable(1) ptr %83(ptr noundef nonnull align 8 dereferenceable(193) %80)
  %85 = load i8, ptr %84, align 1, !tbaa !41
  %86 = zext i8 %85 to i64
  %87 = getelementptr inbounds [10 x %struct.my_pair], ptr %2, i64 0, i64 %86
  %88 = load i8, ptr %87, align 2, !tbaa !53
  store i8 %88, ptr %8, align 1, !tbaa !41
  call void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %89 = load ptr, ptr %13, align 8, !tbaa !42
  %90 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %89, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %91 = load ptr, ptr %16, align 8, !tbaa !43
  %92 = call noundef nonnull align 8 dereferenceable(193) ptr @_ZN7sc_core9sc_signalIcLNS_16sc_writer_policyE0EEaSERKc(ptr noundef nonnull align 8 dereferenceable(193) %91, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  store i8 1, ptr %9, align 1, !tbaa !5
  %93 = load ptr, ptr %10, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %93, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #3
  br label %.backedge
}

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

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

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

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

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

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

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


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