; LLVM IR from facebook/redex :: opt/outliner (OutlinerTypeAnalysis)

; 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.sparta::FiniteAbstractDomain" = type { %"class.boost::multiprecision::number" }
%"class.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base" }
%"struct.boost::multiprecision::backends::cpp_int_base" = type { i16 }
%"class.outliner_impl::OutlinerTypeAnalysis" = type { ptr, %class.Lazy, %class.Lazy.2, %class.Lazy, %class.Lazy.13, %class.Lazy.24, %class.Lazy.35 }
%class.Lazy.2 = type { %"class.std::function.3", %"class.std::unique_ptr.5" }
%"class.std::function.3" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%class.Lazy = type { %"class.std::function", %"class.std::unique_ptr" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%class.Lazy.13 = type { %"class.std::function.14", %"class.std::unique_ptr.16" }
%"class.std::function.14" = type { %"class.std::_Function_base", ptr }
%"class.std::unique_ptr.16" = type { %"struct.std::__uniq_ptr_data.17" }
%"struct.std::__uniq_ptr_data.17" = type { %"class.std::__uniq_ptr_impl.18" }
%"class.std::__uniq_ptr_impl.18" = type { %"class.std::tuple.19" }
%"class.std::tuple.19" = type { %"struct.std::_Tuple_impl.20" }
%"struct.std::_Tuple_impl.20" = type { %"struct.std::_Head_base.23" }
%"struct.std::_Head_base.23" = type { ptr }
%class.Lazy.24 = type { %"class.std::function.25", %"class.std::unique_ptr.27" }
%"class.std::function.25" = type { %"class.std::_Function_base", ptr }
%"class.std::unique_ptr.27" = type { %"struct.std::__uniq_ptr_data.28" }
%"struct.std::__uniq_ptr_data.28" = type { %"class.std::__uniq_ptr_impl.29" }
%"class.std::__uniq_ptr_impl.29" = type { %"class.std::tuple.30" }
%"class.std::tuple.30" = type { %"struct.std::_Tuple_impl.31" }
%"struct.std::_Tuple_impl.31" = type { %"struct.std::_Head_base.34" }
%"struct.std::_Head_base.34" = type { ptr }
%class.Lazy.35 = type { %"class.std::function.36", %"class.std::unique_ptr.38" }
%"class.std::function.36" = type { %"class.std::_Function_base", ptr }
%"class.std::unique_ptr.38" = type { %"struct.std::__uniq_ptr_data.39" }
%"struct.std::__uniq_ptr_data.39" = type { %"class.std::__uniq_ptr_impl.40" }
%"class.std::__uniq_ptr_impl.40" = type { %"class.std::tuple.41" }
%"class.std::tuple.41" = type { %"struct.std::_Tuple_impl.42" }
%"struct.std::_Tuple_impl.42" = type { %"struct.std::_Head_base.45" }
%"struct.std::_Head_base.45" = type { ptr }

@.str.9 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction = external hidden unnamed_addr constant [93 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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
declare dso_local void @_ZNK14type_inference15TypeEnvironment8get_typeEj(ptr dead_on_unwind noalias writable sret(%"class.sparta::FiniteAbstractDomain") align 2, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #1 align 2

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

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

declare noundef ptr @_ZN4type6_floatEv() #3

declare noundef ptr @_ZN4type4_intEv() #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.sparta::FiniteAbstractDomain", align 2
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %15 = call noundef zeroext i1 @_ZN6opcode23is_a_conditional_branchE8IROpcode(i16 noundef zeroext %14)
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %19

17:                                               ; preds = %2
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.15, ptr noundef @.str.9, i32 noundef 444, ptr noundef @__PRETTY_FUNCTION__._ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction, i32 noundef 2, ptr noundef @.str.10) #6
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %20 = getelementptr inbounds %"class.outliner_impl::OutlinerTypeAnalysis", ptr %12, i32 0, i32 5
  %21 = call noundef ptr @_ZN4LazyI12UnorderedMapIPK13IRInstructionN14type_inference15TypeEnvironmentESt4hashIS3_ESt8equal_toIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(40) %20)
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN12UnorderedMapIPK13IRInstructionN14type_inference15TypeEnvironmentESt4hashIS2_ESt8equal_toIS2_EE2atERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store ptr %22, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %65, %19
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
  %27 = icmp ult i64 %24, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  store i32 2, ptr %8, align 4
  br label %68

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #7
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = trunc i64 %32 to i16
  %34 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %31, i16 noundef zeroext %33)
  call void @_ZNK14type_inference15TypeEnvironment8get_typeEj(ptr dead_on_unwind writable sret(%"class.sparta::FiniteAbstractDomain") align 2 %9, ptr noundef nonnull align 8 dereferenceable(48) %30, i32 noundef %34)
  %35 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %9)
          to label %36 unwind label %41

36:                                               ; preds = %29
  %37 = icmp eq i32 %35, 5
  br i1 %37, label %38, label %45

38:                                               ; preds = %36
  %39 = invoke noundef ptr @_ZN4type16java_lang_ObjectEv()
          to label %40 unwind label %41

40:                                               ; preds = %38
  store ptr %39, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %62

41:                                               ; preds = %56, %52, %49, %45, %38, %29
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %10, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %11, align 4
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS2_Lm16EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj16ELj16ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEEEED2Ev(ptr noundef nonnull align 2 dereferenceable(2) %9) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %73

45:                                               ; preds = %36
  %46 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %9)
          to label %47 unwind label %41

47:                                               ; preds = %45
  %48 = icmp eq i32 %46, 7
  br i1 %48, label %49, label %52

49:                                               ; preds = %47
  %50 = invoke noundef ptr @_ZN4type6_floatEv()
          to label %51 unwind label %41

51:                                               ; preds = %49
  store ptr %50, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %62

52:                                               ; preds = %47
  %53 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %9)
          to label %54 unwind label %41

54:                                               ; preds = %52
  %55 = icmp eq i32 %53, 6
  br i1 %55, label %56, label %59

56:                                               ; preds = %54
  %57 = invoke noundef ptr @_ZN4type4_intEv()
          to label %58 unwind label %41

58:                                               ; preds = %56
  store ptr %57, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %62

59:                                               ; preds = %54
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  store i32 0, ptr %8, align 4
  br label %62

62:                                               ; preds = %61, %58, %51, %40
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS2_Lm16EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj16ELj16ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEEEED2Ev(ptr noundef nonnull align 2 dereferenceable(2) %9) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  %63 = load i32, ptr %8, align 4
  switch i32 %63, label %68 [
    i32 0, label %64
  ]

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64
  %66 = load i64, ptr %7, align 8, !tbaa !9
  %67 = add i64 %66, 1
  store i64 %67, ptr %7, align 8, !tbaa !9
  br label %23, !llvm.loop !11

68:                                               ; preds = %62, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %69 = load i32, ptr %8, align 4
  switch i32 %69, label %71 [
    i32 2, label %70
  ]

70:                                               ; preds = %68
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %71

71:                                               ; preds = %70, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %72 = load ptr, ptr %3, align 8
  ret ptr %72

73:                                               ; preds = %41
  %74 = load ptr, ptr %10, align 8
  %75 = load i32, ptr %11, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77
}

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

declare noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

declare noundef ptr @_ZN4type16java_lang_ObjectEv() #3

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 = { 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 = { "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 = { 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 #5 = { 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 #6 = { noreturn }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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.sparta::FiniteAbstractDomain" = type { %"class.boost::multiprecision::number" }
%"class.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base" }
%"struct.boost::multiprecision::backends::cpp_int_base" = type { i16 }

@.str.9 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction = external hidden unnamed_addr constant [93 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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
declare dso_local void @_ZNK14type_inference15TypeEnvironment8get_typeEj(ptr dead_on_unwind noalias writable sret(%"class.sparta::FiniteAbstractDomain") align 2, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

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

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

declare noundef ptr @_ZN4type6_floatEv() local_unnamed_addr #3

declare noundef ptr @_ZN4type4_intEv() local_unnamed_addr #3

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

; 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 #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.sparta::FiniteAbstractDomain", align 2
  store ptr %1, ptr %3, align 8, !tbaa !5
  %5 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %6 = tail call noundef zeroext i1 @_ZN6opcode23is_a_conditional_branchE8IROpcode(i16 noundef zeroext %5)
  br i1 %6, label %8, label %7

7:                                                ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.9, i32 noundef 444, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13outliner_impl20OutlinerTypeAnalysis23get_if_insn_type_demandEP13IRInstruction, i32 noundef 2, ptr noundef nonnull @.str.10) #6
  unreachable

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = tail call noundef ptr @_ZN4LazyI12UnorderedMapIPK13IRInstructionN14type_inference15TypeEnvironmentESt4hashIS3_ESt8equal_toIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
  %11 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN12UnorderedMapIPK13IRInstructionN14type_inference15TypeEnvironmentESt4hashIS2_ESt8equal_toIS2_EE2atERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
  %.not16.not = icmp eq i64 %13, 0
  br i1 %.not16.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %8, %35
  %.01017 = phi i64 [ %36, %35 ], [ 0, %8 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #7
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = trunc i64 %.01017 to i16
  %16 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %14, i16 noundef zeroext %15)
  call void @_ZNK14type_inference15TypeEnvironment8get_typeEj(ptr dead_on_unwind nonnull writable sret(%"class.sparta::FiniteAbstractDomain") align 2 %4, ptr noundef nonnull align 8 dereferenceable(48) %11, i32 noundef %16)
  %17 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %4)
          to label %18 unwind label %.loopexit15

18:                                               ; preds = %.lr.ph
  %19 = icmp eq i32 %17, 5
  br i1 %19, label %20, label %23

20:                                               ; preds = %18
  %21 = invoke noundef ptr @_ZN4type16java_lang_ObjectEv()
          to label %.thread unwind label %.loopexit.split-lp

.loopexit15:                                      ; preds = %.lr.ph, %23, %29
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %22

.loopexit.split-lp:                               ; preds = %20, %27, %33
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %22

22:                                               ; preds = %.loopexit.split-lp, %.loopexit15
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit15 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS2_Lm16EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj16ELj16ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEEEED2Ev(ptr noundef nonnull align 2 dereferenceable(2) %4) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  resume { ptr, i32 } %lpad.phi

23:                                               ; preds = %18
  %24 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %4)
          to label %25 unwind label %.loopexit15

25:                                               ; preds = %23
  %26 = icmp eq i32 %24, 7
  br i1 %26, label %27, label %29

27:                                               ; preds = %25
  %28 = invoke noundef ptr @_ZN4type6_floatEv()
          to label %.thread unwind label %.loopexit.split-lp

29:                                               ; preds = %25
  %30 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS1_Lm16EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj16ELj16ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEE7elementEv(ptr noundef nonnull align 2 dereferenceable(2) %4)
          to label %31 unwind label %.loopexit15

31:                                               ; preds = %29
  %32 = icmp eq i32 %30, 6
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  %34 = invoke noundef ptr @_ZN4type4_intEv()
          to label %.thread unwind label %.loopexit.split-lp

.thread:                                          ; preds = %20, %27, %33
  %.1.ph = phi ptr [ %34, %33 ], [ %28, %27 ], [ %21, %20 ]
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS2_Lm16EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj16ELj16ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEEEED2Ev(ptr noundef nonnull align 2 dereferenceable(2) %4) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  br label %.loopexit

35:                                               ; preds = %31
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI6IRTypeNS_16BitVectorLatticeIS2_Lm16EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj16ELj16ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_ZN14type_inference12type_latticeEEEEEED2Ev(ptr noundef nonnull align 2 dereferenceable(2) %4) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  %36 = add nuw i64 %.01017, 1
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  %.not = icmp ult i64 %36, %38
  br i1 %.not, label %.lr.ph, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %35, %8, %.thread
  %spec.select = phi ptr [ %.1.ph, %.thread ], [ null, %8 ], [ null, %35 ]
  ret ptr %spec.select
}

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

declare noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare noundef ptr @_ZN4type16java_lang_ObjectEv() local_unnamed_addr #3

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 = { "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 = { 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 #5 = { 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 #6 = { noreturn }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass