; LLVM IR from UBIC-repo/core :: Transaction/TransactionHelper.ll (ZN17TransactionHelper18isRegisterPassportEP11Transaction)

; 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::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl" }
%"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl" = type { %"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.UScript = type { i8, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl" }
%"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl" = type { %"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(60)) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorI4TxInSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN4TxIn9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8, ptr noundef nonnull align 8 dereferenceable(112)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4TxInSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8, ptr noundef nonnull align 8 dereferenceable(60)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI5TxOutSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TxOutSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN5TxOut9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN17TransactionHelper18isRegisterPassportEP11Transaction(ptr noundef %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::vector.13", align 8
  %5 = alloca %"class.std::vector.18", align 8
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca %struct.UScript, align 8
  %11 = alloca %"class.std::vector.13", align 8
  %12 = alloca %struct.UScript, align 8
  %13 = alloca %"class.std::vector.18", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8 %4, ptr noundef nonnull align 8 dereferenceable(60) %14)
  %15 = call noundef i64 @_ZNKSt6vectorI4TxInSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %16 = icmp ne i64 %15, 1
  store i1 false, ptr %6, align 1
  store i1 false, ptr %9, align 1
  br i1 %16, label %22, label %17

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  store i1 true, ptr %6, align 1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8 %5, ptr noundef nonnull align 8 dereferenceable(60) %18)
          to label %19 unwind label %31

19:                                               ; preds = %17
  store i1 true, ptr %9, align 1
  %20 = call noundef i64 @_ZNKSt6vectorI5TxOutSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %21 = icmp ne i64 %20, 1
  br label %22

22:                                               ; preds = %19, %1
  %23 = phi i1 [ true, %1 ], [ %21, %19 ]
  %24 = load i1, ptr %9, align 1
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %26

26:                                               ; preds = %25, %22
  %27 = load i1, ptr %6, align 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %29

29:                                               ; preds = %28, %26
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br i1 %23, label %30, label %38

30:                                               ; preds = %29
  store i1 false, ptr %2, align 1
  br label %75

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  %35 = load i1, ptr %6, align 1
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %37

37:                                               ; preds = %36, %31
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br label %77

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8 %11, ptr noundef nonnull align 8 dereferenceable(60) %39)
  %40 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorI4TxInSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  invoke void @_ZN4TxIn9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8 %10, ptr noundef nonnull align 8 dereferenceable(112) %40)
          to label %41 unwind label %47

41:                                               ; preds = %38
  %42 = invoke noundef zeroext i8 @_ZNK7UScript13getScriptTypeEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %43 unwind label %51

43:                                               ; preds = %41
  %44 = zext i8 %42 to i32
  %45 = icmp ne i32 %44, 9
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br i1 %45, label %46, label %56

46:                                               ; preds = %43
  store i1 false, ptr %2, align 1
  br label %75

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %55

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %55

55:                                               ; preds = %51, %47
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br label %77

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8 %13, ptr noundef nonnull align 8 dereferenceable(60) %57)
  %58 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TxOutSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  invoke void @_ZN5TxOut9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8 %12, ptr noundef nonnull align 8 dereferenceable(80) %58)
          to label %59 unwind label %65

59:                                               ; preds = %56
  %60 = invoke noundef zeroext i8 @_ZNK7UScript13getScriptTypeEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %61 unwind label %69

61:                                               ; preds = %59
  %62 = zext i8 %60 to i32
  %63 = icmp ne i32 %62, 2
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br i1 %63, label %64, label %74

64:                                               ; preds = %61
  store i1 false, ptr %2, align 1
  br label %75

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %73

69:                                               ; preds = %59
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %73

73:                                               ; preds = %69, %65
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br label %77

74:                                               ; preds = %61
  store i1 true, ptr %2, align 1
  br label %75

75:                                               ; preds = %74, %64, %46, %30
  %76 = load i1, ptr %2, align 1
  ret i1 %76

77:                                               ; preds = %73, %55, %37
  %78 = load ptr, ptr %7, align 8
  %79 = load i32, ptr %8, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 #5 = { 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"}


; 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::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl" }
%"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl" = type { %"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TxIn, std::allocator<TxIn>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.UScript = type { i8, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl" }
%"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl" = type { %"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TxOut, std::allocator<TxOut>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorI4TxInSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZN4TxIn9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI4TxInSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8, ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI5TxOutSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK7UScript13getScriptTypeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TxOutSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZN5TxOut9getScriptEv(ptr dead_on_unwind writable sret(%struct.UScript) align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN17TransactionHelper18isRegisterPassportEP11Transaction(ptr noundef nonnull %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.13", align 8
  %3 = alloca %"class.std::vector.18", align 8
  %4 = alloca %struct.UScript, align 8
  %5 = alloca %"class.std::vector.13", align 8
  %6 = alloca %struct.UScript, align 8
  %7 = alloca %"class.std::vector.18", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.13") align 8 %2, ptr noundef nonnull align 8 dereferenceable(60) %0)
  %8 = call noundef i64 @_ZNKSt6vectorI4TxInSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not = icmp eq i64 %8, 1
  br i1 %.not, label %9, label %.critedge.thread

.critedge.thread:                                 ; preds = %1
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %25

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  invoke void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.18") align 8 %3, ptr noundef nonnull align 8 dereferenceable(60) %0)
          to label %.critedge unwind label %11

.critedge:                                        ; preds = %9
  %10 = call noundef i64 @_ZNKSt6vectorI5TxOutSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not16 = icmp eq i64 %10, 1
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br i1 %.not16, label %13, label %25

11:                                               ; preds = %9
  %12 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %26

13:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN11Transaction8getTxInsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.13") align 8 %5, ptr noundef nonnull align 8 dereferenceable(60) %0)
  %14 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorI4TxInSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  invoke void @_ZN4TxIn9getScriptEv(ptr dead_on_unwind nonnull writable sret(%struct.UScript) align 8 %4, ptr noundef nonnull align 8 dereferenceable(112) %14)
          to label %15 unwind label %17

15:                                               ; preds = %13
  %16 = call noundef zeroext i8 @_ZNK7UScript13getScriptTypeEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %.not13 = icmp eq i8 %16, 9
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br i1 %.not13, label %19, label %25

17:                                               ; preds = %13
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4TxInSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %26

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN11Transaction9getTxOutsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.18") align 8 %7, ptr noundef nonnull align 8 dereferenceable(60) %0)
  %20 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorI5TxOutSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  invoke void @_ZN5TxOut9getScriptEv(ptr dead_on_unwind nonnull writable sret(%struct.UScript) align 8 %6, ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %21 unwind label %23

21:                                               ; preds = %19
  %22 = call noundef zeroext i8 @_ZNK7UScript13getScriptTypeEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %.not15 = icmp eq i8 %22, 2
  call void @_ZN7UScriptD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %25

23:                                               ; preds = %19
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI5TxOutSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %26

25:                                               ; preds = %.critedge.thread, %21, %15, %.critedge
  %.012 = phi i1 [ false, %.critedge ], [ false, %15 ], [ %.not15, %21 ], [ false, %.critedge.thread ]
  ret i1 %.012

26:                                               ; preds = %23, %17, %11
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %18, %17 ], [ %12, %11 ]
  resume { ptr, i32 } %.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 #5 = { 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)"}


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