; LLVM IR from PaddlePaddle/Paddle :: paddle/pir/src/core/op_operand.ll (ZNK3pir9OpOperand8next_useEv)

; 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.pir::OpOperand" = type { ptr }
%"class.common::ErrorSummary" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@_ZTIN6common7enforce13EnforceNotMetE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local ptr @_ZNK3pir9OpOperand8next_useEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.pir::OpOperand", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.common::ErrorSummary", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.common::ErrorSummary", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  br label %12

12:                                               ; preds = %1
  %13 = getelementptr inbounds %"class.pir::OpOperand", ptr %11, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp eq ptr null, %14
  %16 = zext i1 %15 to i64
  %17 = call i64 @llvm.expect.i64(i64 %16, i64 0)
  %18 = icmp ne i64 %17, 0
  br i1 %18, label %19, label %53

19:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #6
  call void @_ZN6common6errors15InvalidArgumentIJPKcEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind writable sret(%"class.common::ErrorSummary") align 8 %4, ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6common12ErrorSummary13error_messageB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %21 unwind label %29

21:                                               ; preds = %19
  invoke void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES7_PKcDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %22 unwind label %29

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  store i1 true, ptr %10, align 1
  %24 = call ptr @__cxa_allocate_exception(i64 88) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #6
  %25 = invoke noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %26 unwind label %33

26:                                               ; preds = %23
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  invoke void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %8, i32 noundef %25, ptr noundef %9)
          to label %27 unwind label %37

27:                                               ; preds = %26
  invoke void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81) %24, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef @.str.2, i32 noundef 42)
          to label %28 unwind label %41

28:                                               ; preds = %27
  store i1 false, ptr %10, align 1
  invoke void @__cxa_throw(ptr %24, ptr @_ZTIN6common7enforce13EnforceNotMetE, ptr @_ZN6common7enforce13EnforceNotMetD2Ev) #7
          to label %65 unwind label %41

29:                                               ; preds = %21, %19
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %6, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %7, align 4
  br label %52

33:                                               ; preds = %23
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %46

37:                                               ; preds = %26
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  br label %45

41:                                               ; preds = %28, %27
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br label %45

45:                                               ; preds = %41, %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %46

46:                                               ; preds = %45, %33
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #6
  %47 = load i1, ptr %10, align 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void @__cxa_free_exception(ptr %24) #6
  br label %49

49:                                               ; preds = %48, %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %52

50:                                               ; No predecessors!
  br label %51

51:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  br label %53

52:                                               ; preds = %49, %29
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  br label %60

53:                                               ; preds = %51, %12
  br label %54

54:                                               ; preds = %53
  %55 = getelementptr inbounds %"class.pir::OpOperand", ptr %11, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call noundef ptr @_ZN3pir6detail13OpOperandImpl8next_useEv(ptr noundef nonnull align 8 dereferenceable(32) %56)
  call void @_ZN3pir9OpOperandC2EPNS_6detail13OpOperandImplE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %57)
  %58 = getelementptr inbounds %"class.pir::OpOperand", ptr %2, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  ret ptr %59

60:                                               ; preds = %52
  %61 = load ptr, ptr %6, align 8
  %62 = load i32, ptr %7, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64

65:                                               ; preds = %28
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common6errors15InvalidArgumentIJPKcEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind noalias writable sret(%"class.common::ErrorSummary") align 8, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES7_PKcDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

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

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #1 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

declare void @__cxa_free_exception(ptr)

declare noundef ptr @_ZN3pir6detail13OpOperandImpl8next_useEv(ptr noundef nonnull align 8 dereferenceable(32)) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { noreturn }

!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 0}
!10 = !{!"_ZTSN3pir9OpOperandE", !6, 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.pir::OpOperand" = type { ptr }
%"class.common::ErrorSummary" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@_ZTIN6common7enforce13EnforceNotMetE = external dso_local constant { ptr, ptr, ptr }, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local ptr @_ZNK3pir9OpOperand8next_useEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.pir::OpOperand", align 8
  %3 = alloca %"class.common::ErrorSummary", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.common::ErrorSummary", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %24, !prof !10

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @_ZN6common6errors15InvalidArgumentIJPKcEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind nonnull writable sret(%"class.common::ErrorSummary") align 8 %3, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %10 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6common12ErrorSummary13error_messageB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
  invoke void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES7_PKcDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %11 unwind label %16

11:                                               ; preds = %9
  %12 = call ptr @__cxa_allocate_exception(i64 88) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  %13 = call noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %5, i32 noundef %13, ptr noundef nonnull %6)
          to label %14 unwind label %.thread

14:                                               ; preds = %11
  invoke void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81) %12, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull @.str.2, i32 noundef 42)
          to label %15 unwind label %19

15:                                               ; preds = %14
  invoke void @__cxa_throw(ptr nonnull %12, ptr nonnull @_ZTIN6common7enforce13EnforceNotMetE, ptr nonnull @_ZN6common7enforce13EnforceNotMetD2Ev) #6
          to label %27 unwind label %19

16:                                               ; preds = %9
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %23

.thread:                                          ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %21

19:                                               ; preds = %14, %15
  %.0 = phi i1 [ false, %15 ], [ true, %14 ]
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br i1 %.0, label %21, label %22

21:                                               ; preds = %.thread, %19
  %.pn13 = phi { ptr, i32 } [ %18, %.thread ], [ %20, %19 ]
  call void @__cxa_free_exception(ptr %12) #5
  br label %22

22:                                               ; preds = %21, %19
  %.pn12 = phi { ptr, i32 } [ %.pn13, %21 ], [ %20, %19 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %23

23:                                               ; preds = %22, %16
  %.pn.pn = phi { ptr, i32 } [ %.pn12, %22 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn

24:                                               ; preds = %1
  %25 = tail call noundef ptr @_ZN3pir6detail13OpOperandImpl8next_useEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
  call void @_ZN3pir9OpOperandC2EPNS_6detail13OpOperandImplE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %25)
  %26 = load ptr, ptr %2, align 8
  ret ptr %26

27:                                               ; preds = %15
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common6errors15InvalidArgumentIJPKcEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind noalias writable sret(%"class.common::ErrorSummary") align 8, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES7_PKcDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6common12ErrorSummary13error_messageB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #1 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare noundef ptr @_ZN3pir6detail13OpOperandImpl8next_useEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN3pir9OpOperandE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"branch_weights", !"expected", i32 1, i32 2000}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass