; LLVM IR from thepowersgang/mrustc :: src/mir (mir_builder)

; 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"

%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = 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.anon.576 = type { ptr, ptr }
%"class.std::function.490" = type { %"class.std::_Function_base", ptr }
%class.anon.577 = type { ptr, ptr }
%struct.Span = type { ptr }
%class.anon.578 = type { ptr }
%class.anon.579 = type { ptr, ptr }
%"struct.VarState::Data_MovedOut" = type <{ %"class.std::unique_ptr.31", i32, [4 x i8] }>
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"struct.VarState::Data_Partial" = type <{ %"class.std::vector.26", i32, [4 x i8] }>
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@g_debug_indent_level = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE = external hidden unnamed_addr constant [86 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [33 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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3MIR6LValueC2EOS0_(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 @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirBuilder22push_stmt_drop_shallowERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.TraceLog, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.576, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.MIR::LValue", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.std::function.490", align 8
  %20 = alloca %class.anon.577, align 8
  %21 = alloca %"struct.MIR::LValue", align 8
  %22 = alloca %"struct.MIR::LValue", align 8
  %23 = alloca %"struct.MIR::LValue", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %struct.Span, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.578, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  %31 = alloca %"class.std::function.490", align 8
  %32 = alloca %class.anon.579, align 8
  %33 = alloca i64, align 8
  %34 = alloca %"struct.MIR::LValue", align 8
  %35 = alloca %"struct.MIR::LValue", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"struct.MIR::LValue", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #8
  %39 = call noundef zeroext i1 @_Z13debug_enabledv()
  %40 = zext i1 %39 to i64
  %41 = select i1 %39, ptr @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %42 = getelementptr inbounds %class.anon.576, ptr %11, i32 0, i32 0
  store ptr %3, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.anon.576, ptr %11, i32 0, i32 1
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %44, ptr %43, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef %41, ptr noundef %10)
          to label %45 unwind label %49

45:                                               ; preds = %4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = invoke noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %46)
          to label %48 unwind label %53

48:                                               ; preds = %45
  switch i32 %47, label %269 [
    i32 0, label %57
    i32 1, label %58
    i32 5, label %67
    i32 3, label %84
    i32 2, label %165
    i32 4, label %250
  ]

49:                                               ; preds = %4
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %12, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %271

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %12, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %13, align 4
  br label %270

57:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 2244, ptr noundef @__PRETTY_FUNCTION__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE) #9
  unreachable

58:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40) %59)
          to label %61 unwind label %63

61:                                               ; preds = %58
  store ptr %60, ptr %14, align 8, !tbaa !5
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %269

63:                                               ; preds = %58
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %270

67:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK8VarState8as_ValidEv(ptr noundef nonnull align 8 dereferenceable(40) %68)
          to label %70 unwind label %75

70:                                               ; preds = %67
  store ptr %69, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %73 unwind label %75

73:                                               ; preds = %70
  invoke void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef %16, i32 noundef -1)
          to label %74 unwind label %79

74:                                               ; preds = %73
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %269

75:                                               ; preds = %70, %67
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %12, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %13, align 4
  br label %83

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %83

83:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %270

84:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40) %85)
          to label %87 unwind label %109

87:                                               ; preds = %84
  store ptr %86, ptr %17, align 8, !tbaa !5
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  store i8 0, ptr %18, align 1, !tbaa !9
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %90 = getelementptr inbounds %class.anon.577, ptr %20, i32 0, i32 0
  store ptr %38, ptr %90, align 8, !tbaa !11
  %91 = getelementptr inbounds %class.anon.577, ptr %20, i32 0, i32 1
  store ptr %18, ptr %91, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  invoke void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %19, ptr noundef null)
          to label %92 unwind label %113

92:                                               ; preds = %87
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  %93 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %134

95:                                               ; preds = %92
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %97, i32 0, i32 0
  %99 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt10unique_ptrI8VarStateSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %98) #8
  invoke void @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %100 unwind label %117

100:                                              ; preds = %95
  invoke void @_ZN3MIR6LValue9new_DerefES0_(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %21, ptr noundef %22)
          to label %101 unwind label %121

101:                                              ; preds = %100
  invoke void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(40) %99, ptr noundef %21)
          to label %102 unwind label %125

102:                                              ; preds = %101
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %104 unwind label %117

104:                                              ; preds = %102
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !15
  invoke void @_ZN10MirBuilder22push_stmt_drop_shallowERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef %23, i32 noundef %107)
          to label %108 unwind label %130

108:                                              ; preds = %104
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  br label %162

109:                                              ; preds = %84
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %12, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %13, align 4
  br label %164

113:                                              ; preds = %87
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %12, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %163

117:                                              ; preds = %102, %95
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %12, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %13, align 4
  br label %163

121:                                              ; preds = %100
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %12, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %13, align 4
  br label %129

125:                                              ; preds = %101
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %13, align 4
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %129

129:                                              ; preds = %125, %121
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  br label %163

130:                                              ; preds = %104
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %12, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %13, align 4
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  br label %163

134:                                              ; preds = %92
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store ptr @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %136)
          to label %137 unwind label %142

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %138 = getelementptr inbounds %class.anon.578, ptr %27, i32 0, i32 0
  store ptr %24, ptr %138, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %26)
          to label %139 unwind label %146

139:                                              ; preds = %137
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %140 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %140, ptr noundef @.str.15)
          to label %141 unwind label %151

141:                                              ; preds = %139
  invoke void @__cxa_throw(ptr %140, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %277 unwind label %155

142:                                              ; preds = %135
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %150

146:                                              ; preds = %137
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %159

151:                                              ; preds = %139
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %12, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %13, align 4
  call void @__cxa_free_exception(ptr %140) #8
  br label %159

155:                                              ; preds = %141
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %12, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %13, align 4
  br label %159

159:                                              ; preds = %155, %151, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %163

160:                                              ; No predecessors!
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161, %108
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %269

163:                                              ; preds = %159, %130, %129, %117, %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  br label %164

164:                                              ; preds = %163, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %270

165:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40) %166)
          to label %168 unwind label %190

168:                                              ; preds = %165
  store ptr %167, ptr %28, align 8, !tbaa !5
  %169 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  store i8 0, ptr %29, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  store i8 0, ptr %30, align 1, !tbaa !9
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %171 = getelementptr inbounds %class.anon.579, ptr %32, i32 0, i32 0
  store ptr %29, ptr %171, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.anon.579, ptr %32, i32 0, i32 1
  store ptr %30, ptr %172, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  invoke void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %31, ptr noundef null)
          to label %173 unwind label %194

173:                                              ; preds = %168
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  %174 = load i8, ptr %29, align 1, !tbaa !9, !range !13, !noundef !14
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %205

176:                                              ; preds = %173
  br label %177

177:                                              ; preds = %176
  %178 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %179 unwind label %198

179:                                              ; preds = %177
  br i1 %178, label %180, label %202

180:                                              ; preds = %179
  %181 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !24
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %181, ptr noundef @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE)
          to label %183 unwind label %198

183:                                              ; preds = %180
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef @.str.80)
          to label %185 unwind label %198

185:                                              ; preds = %183
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @_ZSt3decRSt8ios_base)
          to label %187 unwind label %198

187:                                              ; preds = %185
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %189 unwind label %198

189:                                              ; preds = %187
  br label %202

190:                                              ; preds = %165
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %12, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %13, align 4
  br label %249

194:                                              ; preds = %168
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %12, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br label %248

198:                                              ; preds = %187, %185, %183, %180, %177
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %12, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %13, align 4
  br label %248

202:                                              ; preds = %189, %179
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  br label %247

205:                                              ; preds = %173
  %206 = load i8, ptr %30, align 1, !tbaa !9, !range !13, !noundef !14
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  br label %246

209:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  store i64 0, ptr %33, align 8, !tbaa !25
  br label %210

210:                                              ; preds = %228, %209
  %211 = load i64, ptr %33, align 8, !tbaa !25
  %212 = load ptr, ptr %28, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %212, i32 0, i32 0
  %214 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %213) #8
  %215 = icmp ult i64 %211, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %245

217:                                              ; preds = %210
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load ptr, ptr %28, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %219, i32 0, i32 0
  %221 = load i64, ptr %33, align 8, !tbaa !25
  %222 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %221) #8
  invoke void @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %35, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %223 unwind label %231

223:                                              ; preds = %217
  %224 = load i64, ptr %33, align 8, !tbaa !25
  %225 = trunc i64 %224 to i32
  invoke void @_ZN3MIR6LValue9new_FieldES0_j(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %34, ptr noundef %35, i32 noundef %225)
          to label %226 unwind label %235

226:                                              ; preds = %223
  invoke void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %218, ptr noundef nonnull align 8 dereferenceable(40) %222, ptr noundef %34)
          to label %227 unwind label %239

227:                                              ; preds = %226
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  br label %228

228:                                              ; preds = %227
  %229 = load i64, ptr %33, align 8, !tbaa !25
  %230 = add i64 %229, 1
  store i64 %230, ptr %33, align 8, !tbaa !25
  br label %210, !llvm.loop !27

231:                                              ; preds = %217
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %12, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %13, align 4
  br label %244

235:                                              ; preds = %223
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %12, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %13, align 4
  br label %243

239:                                              ; preds = %226
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %12, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %13, align 4
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %243

243:                                              ; preds = %239, %235
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  br label %244

244:                                              ; preds = %243, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %248

245:                                              ; preds = %216
  br label %246

246:                                              ; preds = %245, %208
  br label %247

247:                                              ; preds = %246, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %269

248:                                              ; preds = %244, %198, %194
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  br label %249

249:                                              ; preds = %248, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %270

250:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40) %251)
          to label %253 unwind label %260

253:                                              ; preds = %250
  store ptr %252, ptr %36, align 8, !tbaa !5
  %254 = load ptr, ptr %36, align 8, !tbaa !5
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %256 unwind label %260

256:                                              ; preds = %253
  %257 = load ptr, ptr %36, align 8, !tbaa !5
  %258 = load i32, ptr %257, align 4, !tbaa !24
  invoke void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %38, ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef %37, i32 noundef %258)
          to label %259 unwind label %264

259:                                              ; preds = %256
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %269

260:                                              ; preds = %253, %250
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %12, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %13, align 4
  br label %268

264:                                              ; preds = %256
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %12, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %13, align 4
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  br label %268

268:                                              ; preds = %264, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %270

269:                                              ; preds = %259, %247, %162, %74, %61, %48
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #8
  ret void

270:                                              ; preds = %268, %249, %164, %83, %63, %53
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  br label %271

271:                                              ; preds = %270, %49
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #8
  br label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %12, align 8
  %274 = load i32, ptr %13, align 4
  %275 = insertvalue { ptr, i32 } poison, ptr %273, 0
  %276 = insertvalue { ptr, i32 } %275, i32 %274, 1
  resume { ptr, i32 } %276

277:                                              ; preds = %141
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40)) #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_DerefES0_(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_FieldES0_j(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40)) #7 align 2

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 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 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 = { nounwind "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 nounwind "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1", !6, i64 0, !6, i64 8}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !23, i64 8}
!16 = !{!"_ZTSN8VarState13Data_MovedOutE", !17, i64 0, !23, i64 8}
!17 = !{!"_ZTSSt10unique_ptrI8VarStateSt14default_deleteIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_dataI8VarStateSt14default_deleteIS0_ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_implI8VarStateSt14default_deleteIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt5tupleIJP8VarStateSt14default_deleteIS0_EEE", !21, i64 0}
!21 = !{!"_ZTSSt11_Tuple_implILm0EJP8VarStateSt14default_deleteIS0_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm0EP8VarStateLb0EE", !6, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"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"

%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = 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.anon.576 = type { ptr, ptr }
%"class.std::function.490" = type { %"class.std::_Function_base", ptr }
%class.anon.577 = type { ptr, ptr }
%struct.Span = type { ptr }
%class.anon.578 = type { ptr }
%class.anon.579 = type { ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE = external hidden unnamed_addr constant [86 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [33 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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3MIR6LValueC2EOS0_(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 @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirBuilder22push_stmt_drop_shallowERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.TraceLog, align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon.576, align 8
  %8 = alloca %"struct.MIR::LValue", align 8
  %9 = alloca i8, align 1
  %10 = alloca %"class.std::function.490", align 8
  %11 = alloca %class.anon.577, align 8
  %12 = alloca %"struct.MIR::LValue", align 8
  %13 = alloca %"struct.MIR::LValue", align 8
  %14 = alloca %"struct.MIR::LValue", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.578, align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca %"class.std::function.490", align 8
  %22 = alloca %class.anon.579, align 8
  %23 = alloca %"struct.MIR::LValue", align 8
  %24 = alloca %"struct.MIR::LValue", align 8
  %25 = alloca %"struct.MIR::LValue", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  %26 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %27 = select i1 %26, ptr @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  store ptr %3, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %2, ptr %28, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %27, ptr noundef nonnull %6)
          to label %29 unwind label %31

29:                                               ; preds = %4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %30 = call noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  switch i32 %30, label %137 [
    i32 0, label %33
    i32 1, label %34
    i32 5, label %36
    i32 3, label %44
    i32 2, label %86
    i32 4, label %128
  ]

31:                                               ; preds = %4
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %139

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 2244, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE) #9
  unreachable

34:                                               ; preds = %29
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  br label %137

36:                                               ; preds = %29
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK8VarState8as_ValidEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %38 unwind label %40

38:                                               ; preds = %36
  invoke void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %8, i32 noundef -1)
          to label %39 unwind label %42

39:                                               ; preds = %38
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %137

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %138

42:                                               ; preds = %38
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %138

44:                                               ; preds = %29
  %45 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  store i8 0, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  store ptr %0, ptr %11, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %9, ptr %46, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  invoke void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %10, ptr noundef null)
          to label %47 unwind label %59

47:                                               ; preds = %44
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  %48 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %50, label %70

50:                                               ; preds = %47
  %51 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt10unique_ptrI8VarStateSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  invoke void @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %52 unwind label %61

52:                                               ; preds = %50
  invoke void @_ZN3MIR6LValue9new_DerefES0_(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %12, ptr noundef nonnull %13)
          to label %53 unwind label %63

53:                                               ; preds = %52
  invoke void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(40) %51, ptr noundef nonnull %12)
          to label %54 unwind label %65

54:                                               ; preds = %53
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %55 unwind label %61

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %45, i64 8
  %57 = load i32, ptr %56, align 8, !tbaa !15
  invoke void @_ZN10MirBuilder22push_stmt_drop_shallowERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %14, i32 noundef %57)
          to label %58 unwind label %68

58:                                               ; preds = %55
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %137

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %85

61:                                               ; preds = %54, %50
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %85

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %53
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %67

67:                                               ; preds = %65, %63
  %.pn53 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %85

68:                                               ; preds = %55
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %85

70:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store ptr @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %71 unwind label %75

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  store ptr %15, ptr %18, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %17)
          to label %72 unwind label %77

72:                                               ; preds = %71
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  %73 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull @.str.15)
          to label %74 unwind label %80

74:                                               ; preds = %72
  invoke void @__cxa_throw(ptr nonnull %73, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %140 unwind label %82

75:                                               ; preds = %70
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %79

79:                                               ; preds = %77, %75
  %.pn49 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %84

80:                                               ; preds = %72
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %73) #8
  br label %84

82:                                               ; preds = %74
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %84

84:                                               ; preds = %82, %80, %79
  %.pn51 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ], [ %.pn49, %79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %85

85:                                               ; preds = %84, %68, %67, %61, %59
  %.pn55 = phi { ptr, i32 } [ %69, %68 ], [ %62, %61 ], [ %.pn53, %67 ], [ %.pn51, %84 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %138

86:                                               ; preds = %29
  %87 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #8
  store i8 0, ptr %19, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #8
  store i8 0, ptr %20, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  store ptr %19, ptr %22, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %20, ptr %88, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  invoke void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %21, ptr noundef null)
          to label %89 unwind label %104

89:                                               ; preds = %86
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  %90 = load i8, ptr %19, align 1, !tbaa !9, !range !13, !noundef !14
  %91 = trunc nuw i8 %90 to i1
  br i1 %91, label %92, label %108

92:                                               ; preds = %89
  %93 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %94 unwind label %106

94:                                               ; preds = %92
  br i1 %93, label %95, label %.loopexit

95:                                               ; preds = %94
  %96 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !24
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %96, ptr noundef nonnull @__func__._ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE)
          to label %98 unwind label %106

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @.str.80)
          to label %100 unwind label %106

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %102 unwind label %106

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %106

104:                                              ; preds = %86
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  br label %127

106:                                              ; preds = %102, %100, %98, %95, %92
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %127

108:                                              ; preds = %89
  %109 = load i8, ptr %20, align 1, !tbaa !9, !range !13, !noundef !14
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %108
  %111 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #8
  %.not = icmp eq i64 %111, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %116
  %.03161 = phi i64 [ %117, %116 ], [ 0, %.preheader ]
  %112 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.03161) #8
  invoke void @_ZNK3MIR6LValue5cloneEv(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %113 unwind label %120

113:                                              ; preds = %.lr.ph
  %114 = trunc i64 %.03161 to i32
  invoke void @_ZN3MIR6LValue9new_FieldES0_j(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %23, ptr noundef nonnull %24, i32 noundef %114)
          to label %115 unwind label %122

115:                                              ; preds = %113
  invoke void @_ZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(40) %112, ptr noundef nonnull %23)
          to label %116 unwind label %124

116:                                              ; preds = %115
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  %117 = add nuw i64 %.03161, 1
  %118 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #8
  %119 = icmp ult i64 %117, %118
  br i1 %119, label %.lr.ph, label %.loopexit, !llvm.loop !25

120:                                              ; preds = %.lr.ph
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %127

122:                                              ; preds = %113
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %126

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  br label %126

126:                                              ; preds = %124, %122
  %.pn44 = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ]
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  br label %127

.loopexit:                                        ; preds = %116, %.preheader, %108, %94, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  br label %137

127:                                              ; preds = %120, %126, %106, %104
  %.pn47 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ], [ %.pn44, %126 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  br label %138

128:                                              ; preds = %29
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %130 unwind label %133

130:                                              ; preds = %128
  %131 = load i32, ptr %129, align 4, !tbaa !24
  invoke void @_ZN10MirBuilder14push_stmt_dropERK4SpanN3MIR6LValueEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %25, i32 noundef %131)
          to label %132 unwind label %135

132:                                              ; preds = %130
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %137

133:                                              ; preds = %128
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %138

135:                                              ; preds = %130
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %138

137:                                              ; preds = %132, %.loopexit, %58, %39, %34, %29
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  ret void

138:                                              ; preds = %133, %135, %40, %42, %127, %85
  %.pn.pn = phi { ptr, i32 } [ %.pn47, %127 ], [ %.pn55, %85 ], [ %43, %42 ], [ %41, %40 ], [ %136, %135 ], [ %134, %133 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  br label %139

139:                                              ; preds = %138, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %138 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn.pn.pn

140:                                              ; preds = %74
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK10MirBuilder13with_val_typeERK4SpanRKN3MIR6LValueESt8functionIFvRKN3HIR7TypeRefEEEPKNS4_7WrapperE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_DerefES0_(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRKN3HIR7TypeRefEEEC2IZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI8VarStateSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_FieldES0_j(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

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

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 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 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 = { nounwind "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 nounwind "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN10MirBuilder21drop_value_from_stateERK4SpanRK8VarStateN3MIR6LValueEE3$_1", !6, i64 0, !6, i64 8}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !23, i64 8}
!16 = !{!"_ZTSN8VarState13Data_MovedOutE", !17, i64 0, !23, i64 8}
!17 = !{!"_ZTSSt10unique_ptrI8VarStateSt14default_deleteIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_dataI8VarStateSt14default_deleteIS0_ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_implI8VarStateSt14default_deleteIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt5tupleIJP8VarStateSt14default_deleteIS0_EEE", !21, i64 0}
!21 = !{!"_ZTSSt11_Tuple_implILm0EJP8VarStateSt14default_deleteIS0_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm0EP8VarStateLb0EE", !6, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!23, !23, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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