; LLVM IR from facebook/redex :: opt/remove-builders (RemoveBuildersHelper)

; 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.boost::dynamic_bitset<>::reference" = type { ptr, i64 }

@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [93 x i8], align 1
@__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE = external hidden unnamed_addr constant [81 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1

; 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 void @_Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i16, align 2
  %10 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %11 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %12 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %13 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %19 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %4
  br label %25

23:                                               ; preds = %4
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 934, ptr noundef @__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE, i32 noundef 2, ptr noundef @.str.13) #7
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  br label %31

29:                                               ; preds = %25
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.14, ptr noundef @.str.12, i32 noundef 935, ptr noundef @__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE, i32 noundef 2, ptr noundef @.str.13) #7
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #8
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  store i16 %33, ptr %9, align 2, !tbaa !11
  %34 = load i16, ptr %9, align 2, !tbaa !11
  %35 = call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %34)
  br i1 %35, label %36, label %56

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %38, i16 noundef zeroext 0)
  %40 = zext i32 %39 to i64
  %41 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef %40)
  %42 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %43 = extractvalue { ptr, i64 } %41, 0
  store ptr %43, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %45 = extractvalue { ptr, i64 } %41, 1
  store i64 %45, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %47)
  %49 = zext i32 %48 to i64
  %50 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %46, i64 noundef %49)
  %51 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %52 = extractvalue { ptr, i64 } %50, 0
  store ptr %52, ptr %51, align 8
  %53 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %54 = extractvalue { ptr, i64 } %50, 1
  store i64 %54, ptr %53, align 8
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %142

56:                                               ; preds = %31
  %57 = load i16, ptr %9, align 2, !tbaa !11
  %58 = call noundef zeroext i1 @_ZN6opcode16is_a_move_resultE8IROpcode(i16 noundef zeroext %57)
  br i1 %58, label %59, label %78

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %60, i64 noundef %62)
  %64 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %65 = extractvalue { ptr, i64 } %63, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %67 = extractvalue { ptr, i64 } %63, 1
  store i64 %67, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %69)
  %71 = zext i32 %70 to i64
  %72 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %68, i64 noundef %71)
  %73 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %74 = extractvalue { ptr, i64 } %72, 0
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %76 = extractvalue { ptr, i64 } %72, 1
  store i64 %76, ptr %75, align 8
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %141

78:                                               ; preds = %56
  %79 = load i16, ptr %9, align 2, !tbaa !11
  %80 = call noundef zeroext i1 @_ZN6opcode22writes_result_registerE8IROpcode(i16 noundef zeroext %79)
  br i1 %80, label %81, label %123

81:                                               ; preds = %78
  %82 = load i16, ptr %9, align 2, !tbaa !11
  %83 = call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %82)
  br i1 %83, label %84, label %113

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %85)
  store ptr %86, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %87, i32 noundef 4, ptr noundef null)
  store ptr %88, ptr %15, align 8, !tbaa !5
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %93

91:                                               ; preds = %84
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %92, ptr %14, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %91, %84
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %94)
  %96 = call noundef ptr @_ZNK8DexProto9get_rtypeEv(ptr noundef nonnull align 8 dereferenceable(24) %95)
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = icmp eq ptr %96, %97
  br i1 %98, label %99, label %109

99:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %100, i64 noundef %102)
  %104 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %105 = extractvalue { ptr, i64 } %103, 0
  store ptr %105, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %107 = extractvalue { ptr, i64 } %103, 1
  store i64 %107, ptr %106, align 8
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %16, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  store i32 1, ptr %17, align 4
  br label %110

109:                                              ; preds = %93
  store i32 0, ptr %17, align 4
  br label %110

110:                                              ; preds = %109, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %111 = load i32, ptr %17, align 4
  switch i32 %111, label %143 [
    i32 0, label %112
  ]

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %114, i64 noundef %116)
  %118 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %119 = extractvalue { ptr, i64 } %117, 0
  store ptr %119, ptr %118, align 8
  %120 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %121 = extractvalue { ptr, i64 } %117, 1
  store i64 %121, ptr %120, align 8
  %122 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %140

123:                                              ; preds = %78
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %124)
  %126 = zext i1 %125 to i32
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %139

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %130)
  %132 = zext i32 %131 to i64
  %133 = call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %129, i64 noundef %132)
  %134 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %135 = extractvalue { ptr, i64 } %133, 0
  store ptr %135, ptr %134, align 8
  %136 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %137 = extractvalue { ptr, i64 } %133, 1
  store i64 %137, ptr %136, align 8
  %138 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %139

139:                                              ; preds = %128, %123
  br label %140

140:                                              ; preds = %139, %113
  br label %141

141:                                              ; preds = %140, %59
  br label %142

142:                                              ; preds = %141, %36
  store i32 0, ptr %17, align 4
  br label %143

143:                                              ; preds = %142, %110
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #8
  %144 = load i32, ptr %17, align 4
  switch i32 %144, label %146 [
    i32 0, label %145
    i32 1, label %145
  ]

145:                                              ; preds = %143, %143
  ret void

146:                                              ; preds = %143
  unreachable
}

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode16is_a_move_resultE8IROpcode(i16 noundef zeroext) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode22writes_result_registerE8IROpcode(i16 noundef zeroext) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 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 = { noreturn "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 = { 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 = { 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 #7 = { noreturn }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8IROpcode", !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.boost::dynamic_bitset<>::reference" = type { ptr, i64 }

@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [93 x i8], align 1
@__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE = external hidden unnamed_addr constant [81 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1

; 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 void @_Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE(ptr noundef readnone %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #1 {
  %5 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %6 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %7 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %8 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %9 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %10 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %11 = alloca %"class.boost::dynamic_bitset<>::reference", align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %4
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 934, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE, i32 noundef 2, ptr noundef nonnull @.str.13) #7
  unreachable

13:                                               ; preds = %4
  %.not32 = icmp eq ptr %2, null
  br i1 %.not32, label %14, label %15

14:                                               ; preds = %13
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.12, i32 noundef 935, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21transfer_object_reachP7DexTypejPK13IRInstructionRN5boost14dynamic_bitsetImSaImEEE, i32 noundef 2, ptr noundef nonnull @.str.13) #7
  unreachable

15:                                               ; preds = %13
  %16 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %17 = tail call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %16)
  br i1 %17, label %18, label %32

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %19 = tail call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %2, i16 noundef zeroext 0)
  %20 = zext i32 %19 to i64
  %21 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %20)
  %22 = extractvalue { ptr, i64 } %21, 0
  store ptr %22, ptr %5, align 8
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = extractvalue { ptr, i64 } %21, 1
  store i64 %24, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %25 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %26 = zext i32 %25 to i64
  %27 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %26)
  %28 = extractvalue { ptr, i64 } %27, 0
  store ptr %28, ptr %6, align 8
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  %30 = extractvalue { ptr, i64 } %27, 1
  store i64 %30, ptr %29, align 8
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %79

32:                                               ; preds = %15
  %33 = tail call noundef zeroext i1 @_ZN6opcode16is_a_move_resultE8IROpcode(i16 noundef zeroext %16)
  br i1 %33, label %34, label %47

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %35 = zext i32 %1 to i64
  %36 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %35)
  %37 = extractvalue { ptr, i64 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = getelementptr inbounds i8, ptr %7, i64 8
  %39 = extractvalue { ptr, i64 } %36, 1
  store i64 %39, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %40 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %41 = zext i32 %40 to i64
  %42 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %41)
  %43 = extractvalue { ptr, i64 } %42, 0
  store ptr %43, ptr %8, align 8
  %44 = getelementptr inbounds i8, ptr %8, i64 8
  %45 = extractvalue { ptr, i64 } %42, 1
  store i64 %45, ptr %44, align 8
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %79

47:                                               ; preds = %32
  %48 = tail call noundef zeroext i1 @_ZN6opcode22writes_result_registerE8IROpcode(i16 noundef zeroext %16)
  br i1 %48, label %49, label %69

49:                                               ; preds = %47
  %50 = tail call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %16)
  br i1 %50, label %51, label %.critedge

51:                                               ; preds = %49
  %52 = tail call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %53 = tail call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %52, i32 noundef 4, ptr noundef null)
  %.not33 = icmp eq ptr %53, null
  %spec.select = select i1 %.not33, ptr %52, ptr %53
  %54 = tail call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %spec.select)
  %55 = tail call noundef ptr @_ZNK8DexProto9get_rtypeEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  %.not34 = icmp eq ptr %55, %0
  br i1 %.not34, label %56, label %.critedge

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %57 = zext i32 %1 to i64
  %58 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %57)
  %59 = extractvalue { ptr, i64 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = getelementptr inbounds i8, ptr %9, i64 8
  %61 = extractvalue { ptr, i64 } %58, 1
  store i64 %61, ptr %60, align 8
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %79

.critedge:                                        ; preds = %51, %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %63 = zext i32 %1 to i64
  %64 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %63)
  %65 = extractvalue { ptr, i64 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = extractvalue { ptr, i64 } %64, 1
  store i64 %67, ptr %66, align 8
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %79

69:                                               ; preds = %47
  %70 = tail call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  br i1 %70, label %71, label %79

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %72 = tail call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %73 = zext i32 %72 to i64
  %74 = tail call { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %73)
  %75 = extractvalue { ptr, i64 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = getelementptr inbounds i8, ptr %11, i64 8
  %77 = extractvalue { ptr, i64 } %74, 1
  store i64 %77, ptr %76, align 8
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %79

79:                                               ; preds = %56, %18, %.critedge, %71, %69, %34
  ret void
}

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN5boost14dynamic_bitsetImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode16is_a_move_resultE8IROpcode(i16 noundef zeroext) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode22writes_result_registerE8IROpcode(i16 noundef zeroext) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost14dynamic_bitsetImSaImEE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 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 = { noreturn "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 = { 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 = { 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 #7 = { noreturn }
attributes #8 = { 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,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass