; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/utils/sc_report/action_selection (action_selection)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@usr_actions = external dso_local global [6 x i32], align 16
@id1 = external dso_local global ptr, align 8
@id4 = external dso_local global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21allocate_user_actionsv() #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16dump_all_handlerRKN7sc_core9sc_reportERKj(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9set_rulesv() #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11query_rulesPKc(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11query_rulesv() #0

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @_Z21allocate_user_actionsv()
  %5 = call noundef ptr @_ZN7sc_core17sc_report_handler11set_handlerEPFvRKNS_9sc_reportERKjE(ptr noundef @_Z16dump_all_handlerRKN7sc_core9sc_reportERKj)
  %6 = call noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef 2, i32 noundef 0)
  %7 = call noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef 3, i32 noundef 0)
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.35)
  %9 = load ptr, ptr @id4, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %9)
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.36)
  call void @_Z9set_rulesv()
  call void @_Z11query_rulesv()
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.37)
  call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %12 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 8), align 4, !tbaa !5
  %13 = call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %12)
  %14 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 12), align 4, !tbaa !5
  %15 = call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %14)
  %16 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 8), align 4, !tbaa !5
  %17 = icmp eq i32 %15, %16
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  br label %20

19:                                               ; preds = %2
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.38, ptr noundef @.str.8, i32 noundef 220)
  br label %20

20:                                               ; preds = %19, %18
  %21 = phi i32 [ 0, %18 ], [ 0, %19 ]
  %22 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %22)
  %23 = call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv()
  %24 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 12), align 4, !tbaa !5
  %25 = icmp eq i32 %23, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %20
  br label %28

27:                                               ; preds = %20
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.39, ptr noundef @.str.8, i32 noundef 222)
  br label %28

28:                                               ; preds = %27, %26
  %29 = phi i32 [ 0, %26 ], [ 0, %27 ]
  %30 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %30)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.40)
  call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %32 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 4), align 4, !tbaa !5
  %33 = call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %32)
  %34 = load i32, ptr @usr_actions, align 4, !tbaa !5
  %35 = call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %34)
  %36 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 4), align 4, !tbaa !5
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %38, label %39

38:                                               ; preds = %28
  br label %40

39:                                               ; preds = %28
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.41, ptr noundef @.str.8, i32 noundef 229)
  br label %40

40:                                               ; preds = %39, %38
  %41 = phi i32 [ 0, %38 ], [ 0, %39 ]
  %42 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %42)
  %43 = call noundef i32 @_ZN7sc_core17sc_report_handler5forceEv()
  %44 = load i32, ptr @usr_actions, align 4, !tbaa !5
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  br label %48

47:                                               ; preds = %40
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.42, ptr noundef @.str.8, i32 noundef 231)
  br label %48

48:                                               ; preds = %47, %46
  %49 = phi i32 [ 0, %46 ], [ 0, %47 ]
  %50 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %50)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.43)
  call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %52 = load i32, ptr @usr_actions, align 4, !tbaa !5
  %53 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 8), align 4, !tbaa !5
  %54 = or i32 %52, %53
  %55 = call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %54)
  %56 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 8), align 4, !tbaa !5
  %57 = load i32, ptr getelementptr (i8, ptr @usr_actions, i64 12), align 4, !tbaa !5
  %58 = or i32 %56, %57
  %59 = call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %58)
  %60 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %60)
  %61 = call noundef i32 @_ZN7sc_core17sc_report_handler5forceEv()
  %62 = call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv()
  %63 = load ptr, ptr @id1, align 8, !tbaa !9
  call void @_Z11query_rulesPKc(ptr noundef %63)
  ret i32 0
}

declare noundef ptr @_ZN7sc_core17sc_report_handler11set_handlerEPFvRKNS_9sc_reportERKjE(ptr noundef) #2

declare noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef, i32 noundef, i32 noundef) #1

declare noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef) #2

declare noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv() #2

declare noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef) #2

declare noundef i32 @_ZN7sc_core17sc_report_handler5forceEv() #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 = { inlinehint 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@usr_actions = external dso_local local_unnamed_addr global [6 x i32], align 16
@id1 = external dso_local local_unnamed_addr global ptr, align 8
@id4 = external dso_local local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21allocate_user_actionsv() local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16dump_all_handlerRKN7sc_core9sc_reportERKj(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9set_rulesv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11query_rulesPKc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11query_rulesv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  tail call void @_Z21allocate_user_actionsv()
  %3 = tail call noundef ptr @_ZN7sc_core17sc_report_handler11set_handlerEPFvRKNS_9sc_reportERKjE(ptr noundef nonnull @_Z16dump_all_handlerRKN7sc_core9sc_reportERKj)
  %4 = tail call noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef 2, i32 noundef 0)
  %5 = tail call noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef 3, i32 noundef 0)
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.35)
  %7 = load ptr, ptr @id4, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %7)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.36)
  tail call void @_Z9set_rulesv()
  tail call void @_Z11query_rulesv()
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.37)
  tail call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 8), align 8, !tbaa !9
  %11 = tail call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %10)
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 12), align 4, !tbaa !9
  %13 = tail call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %12)
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 8), align 8, !tbaa !9
  %15 = icmp eq i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %2
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.8, i32 noundef 220)
  br label %17

17:                                               ; preds = %2, %16
  %18 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %18)
  %19 = tail call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv()
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 12), align 4, !tbaa !9
  %21 = icmp eq i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.8, i32 noundef 222)
  br label %23

23:                                               ; preds = %17, %22
  %24 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %24)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.40)
  tail call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 4), align 4, !tbaa !9
  %27 = tail call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %26)
  %28 = load i32, ptr @usr_actions, align 16, !tbaa !9
  %29 = tail call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %28)
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 4), align 4, !tbaa !9
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %23
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.8, i32 noundef 229)
  br label %33

33:                                               ; preds = %23, %32
  %34 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %34)
  %35 = tail call noundef i32 @_ZN7sc_core17sc_report_handler5forceEv()
  %36 = load i32, ptr @usr_actions, align 16, !tbaa !9
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.8, i32 noundef 231)
  br label %39

39:                                               ; preds = %33, %38
  %40 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %40)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.43)
  tail call void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
  %42 = load i32, ptr @usr_actions, align 16, !tbaa !9
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 8), align 8, !tbaa !9
  %44 = or i32 %43, %42
  %45 = tail call noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef %44)
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 8), align 8, !tbaa !9
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @usr_actions, i64 12), align 4, !tbaa !9
  %48 = or i32 %47, %46
  %49 = tail call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef %48)
  %50 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %50)
  %51 = tail call noundef i32 @_ZN7sc_core17sc_report_handler5forceEv()
  %52 = tail call noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv()
  %53 = load ptr, ptr @id1, align 8, !tbaa !5
  tail call void @_Z11query_rulesPKc(ptr noundef %53)
  ret i32 0
}

declare noundef ptr @_ZN7sc_core17sc_report_handler11set_handlerEPFvRKNS_9sc_reportERKjE(ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7sc_core17sc_report_handler10stop_afterENS_11sc_severityEi(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare noundef i32 @_ZN7sc_core17sc_report_handler8suppressEj(i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7sc_core17sc_report_handler8suppressEv() local_unnamed_addr #2

declare noundef i32 @_ZN7sc_core17sc_report_handler5forceEj(i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7sc_core17sc_report_handler5forceEv() local_unnamed_addr #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 = { inlinehint 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"int", !7, i64 0}


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass