; LLVM IR from thepowersgang/mrustc :: src/ast/expr.ll (ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E)

; 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.__gnu_cxx::__normal_iterator.169" = type { ptr }
%"struct.AST::ExprNode_Asm2" = type { %"class.AST::ExprNode", %"struct.AsmCommon::Options", %"class.std::vector.72", %"class.std::vector.77" }
%"class.AST::ExprNode" = type { ptr, %"class.AST::AttributeList", %struct.Span }
%"class.AST::AttributeList" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::Attribute, std::allocator<AST::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Span = type { ptr }
%"struct.AsmCommon::Options" = type { i8, [3 x i8] }
%"class.std::vector.72" = type { %"struct.std::_Vector_base.73" }
%"struct.std::_Vector_base.73" = type { %"struct.std::_Vector_base<AsmCommon::Line, std::allocator<AsmCommon::Line>>::_Vector_impl" }
%"struct.std::_Vector_base<AsmCommon::Line, std::allocator<AsmCommon::Line>>::_Vector_impl" = type { %"struct.std::_Vector_base<AsmCommon::Line, std::allocator<AsmCommon::Line>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AsmCommon::Line, std::allocator<AsmCommon::Line>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.77" = type { %"struct.std::_Vector_base.78" }
%"struct.std::_Vector_base.78" = type { %"struct.std::_Vector_base<AST::ExprNode_Asm2::Param, std::allocator<AST::ExprNode_Asm2::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::ExprNode_Asm2::Param, std::allocator<AST::ExprNode_Asm2::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::ExprNode_Asm2::Param, std::allocator<AST::ExprNode_Asm2::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::ExprNode_Asm2::Param, std::allocator<AST::ExprNode_Asm2::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::ExprNode_Asm2::Param::Data_RegSingle" = type { i32, %"class.AsmCommon::RegisterSpec", %"class.AST::ExprNodeP" }
%"class.AsmCommon::RegisterSpec" = type { i32, %"union.AsmCommon::RegisterSpec::DataUnion" }
%"union.AsmCommon::RegisterSpec::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.AST::ExprNodeP" = type { ptr }
%"struct.AST::ExprNode_Asm2::Param::Data_Reg" = type { i32, %"class.AsmCommon::RegisterSpec", %"class.AST::ExprNodeP", %"class.AST::ExprNodeP" }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E = external hidden unnamed_addr constant [57 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.169", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.169", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.AST::ExprNode_Asm2", ptr %21, i32 0, i32 3
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call ptr @_ZNSt6vectorIN3AST13ExprNode_Asm25ParamESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.169", ptr %6, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call ptr @_ZNSt6vectorIN3AST13ExprNode_Asm25ParamESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.169", ptr %7, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  br label %29

29:                                               ; preds = %132, %2
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %134

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %33 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 1, ptr %10, align 1, !tbaa !9
  br label %34

34:                                               ; preds = %130, %32
  %35 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %36 = trunc i8 %35 to i1
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %131

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %39, ptr %11, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %128, %38
  %41 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %42 = trunc i8 %41 to i1
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %129

44:                                               ; preds = %40
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK3AST13ExprNode_Asm25Param3tagEv(ptr noundef nonnull align 8 dereferenceable(248) %45)
  switch i32 %46, label %127 [
    i32 0, label %47
    i32 1, label %48
    i32 2, label %67
    i32 3, label %85
    i32 4, label %105
  ]

47:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 676, ptr noundef @__PRETTY_FUNCTION__._ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E) #7
  unreachable

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 1, ptr %12, align 1, !tbaa !9
  br label %49

49:                                               ; preds = %65, %48
  %50 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %51 = trunc i8 %50 to i1
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %66

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3AST13ExprNode_Asm25Param8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(248) %54)
  store ptr %55, ptr %13, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %63, %53
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %59 = trunc i8 %58 to i1
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %64

61:                                               ; preds = %56
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %62)
  br label %63

63:                                               ; preds = %61
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %56, !llvm.loop !13

64:                                               ; preds = %60
  br label %65

65:                                               ; preds = %64
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %49, !llvm.loop !15

66:                                               ; preds = %52
  br label %127

67:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 1, ptr %14, align 1, !tbaa !9
  br label %68

68:                                               ; preds = %83, %67
  %69 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %70 = trunc i8 %69 to i1
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %84

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZN3AST13ExprNode_Asm25Param6as_SymEv(ptr noundef nonnull align 8 dereferenceable(248) %73)
  store ptr %74, ptr %15, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %81, %72
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %78 = trunc i8 %77 to i1
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %82

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %75, !llvm.loop !16

82:                                               ; preds = %79
  br label %83

83:                                               ; preds = %82
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %68, !llvm.loop !17

84:                                               ; preds = %71
  br label %127

85:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %86

86:                                               ; preds = %103, %85
  %87 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %88 = trunc i8 %87 to i1
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %104

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3AST13ExprNode_Asm25Param12as_RegSingleEv(ptr noundef nonnull align 8 dereferenceable(248) %91)
  store ptr %92, ptr %17, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %101, %90
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %96 = trunc i8 %95 to i1
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %102

98:                                               ; preds = %93
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.AST::ExprNode_Asm2::Param::Data_RegSingle", ptr %99, i32 0, i32 2
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %100)
  br label %101

101:                                              ; preds = %98
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %93, !llvm.loop !18

102:                                              ; preds = %97
  br label %103

103:                                              ; preds = %102
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %86, !llvm.loop !19

104:                                              ; preds = %89
  br label %127

105:                                              ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %106

106:                                              ; preds = %125, %105
  %107 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %108 = trunc i8 %107 to i1
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %126

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN3AST13ExprNode_Asm25Param6as_RegEv(ptr noundef nonnull align 8 dereferenceable(248) %111)
  store ptr %112, ptr %19, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %123, %110
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %116 = trunc i8 %115 to i1
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 32, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %124

118:                                              ; preds = %113
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.AST::ExprNode_Asm2::Param::Data_Reg", ptr %119, i32 0, i32 2
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %120)
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.AST::ExprNode_Asm2::Param::Data_Reg", ptr %121, i32 0, i32 3
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %122)
  br label %123

123:                                              ; preds = %118
  store i8 0, ptr %18, align 1, !tbaa !9
  br label %113, !llvm.loop !20

124:                                              ; preds = %117
  br label %125

125:                                              ; preds = %124
  store i8 0, ptr %18, align 1, !tbaa !9
  br label %106, !llvm.loop !21

126:                                              ; preds = %109
  br label %127

127:                                              ; preds = %126, %104, %84, %66, %44
  br label %128

128:                                              ; preds = %127
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %40, !llvm.loop !22

129:                                              ; preds = %43
  br label %130

130:                                              ; preds = %129
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %34, !llvm.loop !23

131:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %132

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %29

134:                                              ; preds = %31
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(240) ptr @_ZN3AST13ExprNode_Asm25Param6as_SymEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3AST13ExprNode_Asm25Param12as_RegSingleEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN3AST13ExprNode_Asm25Param6as_RegEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; 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.__gnu_cxx::__normal_iterator.169" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E = external hidden unnamed_addr constant [57 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #4 align 2 {
.split106:
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.169", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.169", align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %5 = tail call ptr @_ZNSt6vectorIN3AST13ExprNode_Asm25ParamESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %5, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %6 = tail call ptr @_ZNSt6vectorIN3AST13ExprNode_Asm25ParamESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %6, ptr %3, align 8
  %7 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %7, label %.split88, label %._crit_edge

._crit_edge:                                      ; preds = %..loopexit46_crit_edge, %.split106
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

.split88:                                         ; preds = %.split106, %..loopexit46_crit_edge
  %8 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %9 = call noundef i32 @_ZNK3AST13ExprNode_Asm25Param3tagEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  switch i32 %9, label %..loopexit46_crit_edge [
    i32 0, label %.split
    i32 1, label %.preheader
    i32 2, label %.preheader39
    i32 3, label %.preheader41
    i32 4, label %.preheader43
  ]

.preheader43:                                     ; preds = %.split88
  %10 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN3AST13ExprNode_Asm25Param6as_RegEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  %11 = getelementptr inbounds i8, ptr %10, i64 48
  %12 = getelementptr inbounds i8, ptr %10, i64 56
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %12)
  br label %..loopexit46_crit_edge

.preheader41:                                     ; preds = %.split88
  %13 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3AST13ExprNode_Asm25Param12as_RegSingleEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  %14 = getelementptr inbounds i8, ptr %13, i64 48
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %14)
  br label %..loopexit46_crit_edge

.preheader39:                                     ; preds = %.split88
  %15 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZN3AST13ExprNode_Asm25Param6as_SymEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  br label %..loopexit46_crit_edge

.preheader:                                       ; preds = %.split88
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3AST13ExprNode_Asm25Param8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(248) %8)
  call void @_ZN3AST14NodeVisitorDef5visitERNS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %16)
  br label %..loopexit46_crit_edge

.split:                                           ; preds = %.split88
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 676, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3AST14NodeVisitorDef5visitERNS_13ExprNode_Asm2E) #7
  unreachable

..loopexit46_crit_edge:                           ; preds = %.preheader39, %.preheader43, %.preheader41, %.preheader, %.split88
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %18, label %.split88, label %._crit_edge
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3AST13ExprNode_Asm25ParamESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(240) ptr @_ZN3AST13ExprNode_Asm25Param6as_SymEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3AST13ExprNode_Asm25Param12as_RegSingleEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN3AST13ExprNode_Asm25Param6as_RegEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass