; LLVM IR from gem5/gem5 :: ext/mcpat/system.ll (ZN6SystemC2EP7XMLNode)

; 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.System = type { %class.McPATComponent, %class.InputParameter, i32, double, i32, i32 }
%class.McPATComponent = type { ptr, %class.Component, ptr, %class.InputParameter, %"class.std::__cxx11::basic_string", double, %"class.std::vector", %class.McPATOutput, %class.statsDef, %class.statsDef, %class.powerDef, %class.powerDef }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%"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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl" = type { %"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<McPATComponent *, std::allocator<McPATComponent *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.McPATOutput = type { double, double, double, double, double, double }
%class.statsDef = type { %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents, %class.statsComponents }
%class.statsComponents = type { double, double, double }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%class.InputParameter = type { i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i8, i8, i32, i32, i8, double, double, i8, i32, i32, i8 }

@_ZTV6System = external dso_local unnamed_addr constant { [6 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SystemC2EP7XMLNode(ptr noundef nonnull align 8 dereferenceable(1744) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14McPATComponentC2EP7XMLNode(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %23)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTV6System, i32 0, i32 0, i32 2), ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !11
  %25 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 4
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str)
          to label %27 unwind label %52

27:                                               ; preds = %2
  invoke void @_ZN6System14set_proc_paramEv(ptr noundef nonnull align 8 dereferenceable(1744) %22)
          to label %28 unwind label %52

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %29 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = invoke noundef i32 @_ZNK7XMLNode10nChildNodeEPKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.1)
          to label %32 unwind label %56

32:                                               ; preds = %28
  store i32 %31, ptr %10, align 4, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %288, %32
  %34 = load i32, ptr %5, align 4, !tbaa !11
  %35 = load i32, ptr %10, align 4, !tbaa !11
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %293

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %38 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = invoke noundef ptr @_ZNK7XMLNode15getChildNodePtrEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @.str.1, ptr noundef %5)
          to label %41 unwind label %60

41:                                               ; preds = %37
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZNK7XMLNode12getAttributeEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @.str.2, ptr noundef null)
          to label %44 unwind label %64

44:                                               ; preds = %41
  store ptr %43, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %68, label %47

47:                                               ; preds = %44
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = invoke noundef ptr @_ZNK7XMLNode12getAttributeEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str.3, ptr noundef null)
          to label %50 unwind label %64

50:                                               ; preds = %47
  invoke void @_ZN14McPATComponent24warnMissingComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %49)
          to label %51 unwind label %64

51:                                               ; preds = %50
  br label %287

52:                                               ; preds = %27, %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %8, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %9, align 4
  br label %295

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  br label %294

60:                                               ; preds = %37
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  br label %292

64:                                               ; preds = %274, %262, %237, %222, %50, %47, %41
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  br label %291

68:                                               ; preds = %44
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call i32 @strcmp(ptr noundef %69, ptr noundef @.str.4) #8
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %92

72:                                               ; preds = %68
  %73 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %74 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 2688) #9
          to label %75 unwind label %83

75:                                               ; preds = %72
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !11
  %78 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN4CoreC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(2688) %74, ptr noundef %76, i32 noundef %77, ptr noundef %78)
          to label %79 unwind label %87

79:                                               ; preds = %75
  store ptr %74, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %80 unwind label %83

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %81 = load i32, ptr %6, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %6, align 4, !tbaa !11
  br label %286

83:                                               ; preds = %79, %72
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  br label %91

87:                                               ; preds = %75
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 2688) #10
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %291

92:                                               ; preds = %68
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = call i32 @strcmp(ptr noundef %93, ptr noundef @.str.5) #8
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %113

96:                                               ; preds = %92
  %97 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %98 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1784) #9
          to label %99 unwind label %104

99:                                               ; preds = %96
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN9CacheUnitC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1784) %98, ptr noundef %100, ptr noundef %101)
          to label %102 unwind label %108

102:                                              ; preds = %99
  store ptr %98, ptr %14, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %103 unwind label %104

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %285

104:                                              ; preds = %102, %96
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %8, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %9, align 4
  br label %112

108:                                              ; preds = %99
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %98, i64 noundef 1784) #10
  br label %112

112:                                              ; preds = %108, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %291

113:                                              ; preds = %92
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = call i32 @strcmp(ptr noundef %114, ptr noundef @.str.6) #8
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %134

117:                                              ; preds = %113
  %118 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %119 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1352) #9
          to label %120 unwind label %125

120:                                              ; preds = %117
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN15CacheControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1352) %119, ptr noundef %121, ptr noundef %122)
          to label %123 unwind label %129

123:                                              ; preds = %120
  store ptr %119, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %124 unwind label %125

124:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %284

125:                                              ; preds = %123, %117
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %8, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %9, align 4
  br label %133

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %119, i64 noundef 1352) #10
  br label %133

133:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %291

134:                                              ; preds = %113
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = call i32 @strcmp(ptr noundef %135, ptr noundef @.str.7) #8
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %155

138:                                              ; preds = %134
  %139 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %140 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1864) #9
          to label %141 unwind label %146

141:                                              ; preds = %138
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN16MemoryControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1864) %140, ptr noundef %142, ptr noundef %143)
          to label %144 unwind label %150

144:                                              ; preds = %141
  store ptr %140, ptr %16, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %145 unwind label %146

145:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %283

146:                                              ; preds = %144, %138
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  br label %154

150:                                              ; preds = %141
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %140, i64 noundef 1864) #10
  br label %154

154:                                              ; preds = %150, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %291

155:                                              ; preds = %134
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = call i32 @strcmp(ptr noundef %156, ptr noundef @.str.8) #8
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %176

159:                                              ; preds = %155
  %160 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %161 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1496) #9
          to label %162 unwind label %167

162:                                              ; preds = %159
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN15FlashControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1496) %161, ptr noundef %163, ptr noundef %164)
          to label %165 unwind label %171

165:                                              ; preds = %162
  store ptr %161, ptr %17, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %166 unwind label %167

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %282

167:                                              ; preds = %165, %159
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %8, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %9, align 4
  br label %175

171:                                              ; preds = %162
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %8, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %161, i64 noundef 1496) #10
  br label %175

175:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %291

176:                                              ; preds = %155
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = call i32 @strcmp(ptr noundef %177, ptr noundef @.str.9) #8
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %197

180:                                              ; preds = %176
  %181 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %182 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1384) #9
          to label %183 unwind label %188

183:                                              ; preds = %180
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN13NIUControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1384) %182, ptr noundef %184, ptr noundef %185)
          to label %186 unwind label %192

186:                                              ; preds = %183
  store ptr %182, ptr %18, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %187 unwind label %188

187:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %281

188:                                              ; preds = %186, %180
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %8, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %9, align 4
  br label %196

192:                                              ; preds = %183
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %8, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %182, i64 noundef 1384) #10
  br label %196

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %291

197:                                              ; preds = %176
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = call i32 @strcmp(ptr noundef %198, ptr noundef @.str.10) #8
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %201, label %218

201:                                              ; preds = %197
  %202 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %203 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1392) #9
          to label %204 unwind label %209

204:                                              ; preds = %201
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN14PCIeControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1392) %203, ptr noundef %205, ptr noundef %206)
          to label %207 unwind label %213

207:                                              ; preds = %204
  store ptr %203, ptr %19, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %202, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %208 unwind label %209

208:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %280

209:                                              ; preds = %207, %201
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %8, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %9, align 4
  br label %217

213:                                              ; preds = %204
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %8, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %203, i64 noundef 1392) #10
  br label %217

217:                                              ; preds = %213, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %291

218:                                              ; preds = %197
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = call i32 @strcmp(ptr noundef %219, ptr noundef @.str.11) #8
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %225

222:                                              ; preds = %218
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN14McPATComponent27warnIncompleteComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %223)
          to label %224 unwind label %64

224:                                              ; preds = %222
  br label %279

225:                                              ; preds = %218
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = call i32 @strcmp(ptr noundef %226, ptr noundef @.str.12) #8
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %251

229:                                              ; preds = %225
  %230 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %231 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 10600) #9
          to label %232 unwind label %242

232:                                              ; preds = %229
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = load i32, ptr %7, align 4, !tbaa !11
  %235 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN13OnChipNetworkC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10600) %231, ptr noundef %233, i32 noundef %234, ptr noundef %235)
          to label %236 unwind label %246

236:                                              ; preds = %232
  store ptr %231, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %230, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %237 unwind label %242

237:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %238 = load i32, ptr %7, align 4, !tbaa !11
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %7, align 4, !tbaa !11
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN14McPATComponent27warnIncompleteComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %240)
          to label %241 unwind label %64

241:                                              ; preds = %237
  br label %278

242:                                              ; preds = %236, %229
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %8, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %9, align 4
  br label %250

246:                                              ; preds = %232
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %8, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %231, i64 noundef 10600) #10
  br label %250

250:                                              ; preds = %246, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %291

251:                                              ; preds = %225
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = call i32 @strcmp(ptr noundef %252, ptr noundef @.str.13) #8
  %254 = icmp eq i32 %253, 0
  br i1 %254, label %255, label %274

255:                                              ; preds = %251
  %256 = getelementptr inbounds %class.McPATComponent, ptr %22, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %257 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 10280) #9
          to label %258 unwind label %265

258:                                              ; preds = %255
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %class.System, ptr %22, i32 0, i32 1
  invoke void @_ZN15BusInterconnectC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10280) %257, ptr noundef %259, ptr noundef %260)
          to label %261 unwind label %269

261:                                              ; preds = %258
  store ptr %257, ptr %21, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %256, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %262 unwind label %265

262:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN14McPATComponent27warnIncompleteComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %263)
          to label %264 unwind label %64

264:                                              ; preds = %262
  br label %277

265:                                              ; preds = %261, %255
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %8, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %9, align 4
  br label %273

269:                                              ; preds = %258
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %8, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %257, i64 noundef 10280) #10
  br label %273

273:                                              ; preds = %269, %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %291

274:                                              ; preds = %251
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN14McPATComponent25warnUnrecognizedComponentEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %22, ptr noundef %275)
          to label %276 unwind label %64

276:                                              ; preds = %274
  br label %277

277:                                              ; preds = %276, %264
  br label %278

278:                                              ; preds = %277, %241
  br label %279

279:                                              ; preds = %278, %224
  br label %280

280:                                              ; preds = %279, %208
  br label %281

281:                                              ; preds = %280, %187
  br label %282

282:                                              ; preds = %281, %166
  br label %283

283:                                              ; preds = %282, %145
  br label %284

284:                                              ; preds = %283, %124
  br label %285

285:                                              ; preds = %284, %103
  br label %286

286:                                              ; preds = %285, %80
  br label %287

287:                                              ; preds = %286, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %5, align 4, !tbaa !11
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %5, align 4, !tbaa !11
  br label %33, !llvm.loop !33

291:                                              ; preds = %273, %250, %217, %196, %175, %154, %133, %112, %91, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %292

292:                                              ; preds = %291, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %294

293:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void

294:                                              ; preds = %292, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %295

295:                                              ; preds = %294, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN14McPATComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(1352) %22) #7
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %8, align 8
  %298 = load i32, ptr %9, align 4
  %299 = insertvalue { ptr, i32 } poison, ptr %297, 0
  %300 = insertvalue { ptr, i32 } %299, i32 %298, 1
  resume { ptr, i32 } %300
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6System14set_proc_paramEv(ptr noundef nonnull align 8 dereferenceable(1744)) #0 align 2

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN4CoreC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(2688), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

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

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

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

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

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

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

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

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

declare void @_ZN13OnChipNetworkC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10600), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN14McPATComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(1352)) unnamed_addr #6

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "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 = { nobuiltin allocsize(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 = { nobuiltin 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 = { 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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 288}
!14 = !{!"_ZTS14McPATComponent", !15, i64 8, !6, i64 288, !20, i64 296, !23, i64 664, !17, i64 696, !26, i64 704, !30, i64 728, !31, i64 776, !31, i64 944, !18, i64 1112, !18, i64 1232}
!15 = !{!"_ZTS9Component", !16, i64 0, !18, i64 24, !18, i64 144, !17, i64 264, !17, i64 272}
!16 = !{!"_ZTS4Area", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTS8powerDef", !19, i64 0, !19, i64 40, !19, i64 80}
!19 = !{!"_ZTS15powerComponents", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32}
!20 = !{!"_ZTS14InputParameter", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !21, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !17, i64 48, !17, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !21, i64 84, !21, i64 85, !21, i64 86, !21, i64 87, !21, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !22, i64 152, !12, i64 156, !21, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !21, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !12, i64 296, !21, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !21, i64 316, !21, i64 317, !12, i64 320, !12, i64 324, !21, i64 328, !17, i64 336, !17, i64 344, !21, i64 352, !12, i64 356, !12, i64 360, !21, i64 364}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTS9Wire_type", !7, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTS11McPATOutput", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40}
!31 = !{!"_ZTS8statsDef", !32, i64 0, !32, i64 24, !32, i64 48, !32, i64 72, !32, i64 96, !32, i64 120, !32, i64 144}
!32 = !{!"_ZTS15statsComponents", !17, i64 0, !17, i64 8, !17, i64 16}
!33 = distinct !{!33, !34}
!34 = !{!"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"

@_ZTV6System = external dso_local unnamed_addr constant { [6 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SystemC2EP7XMLNode(ptr noundef nonnull align 8 dereferenceable(1744) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  tail call void @_ZN14McPATComponentC2EP7XMLNode(ptr noundef nonnull align 8 dereferenceable(1352) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTV6System, i64 16), ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 664
  %14 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str)
          to label %15 unwind label %32

15:                                               ; preds = %2
  invoke void @_ZN6System14set_proc_paramEv(ptr noundef nonnull align 8 dereferenceable(1744) %0)
          to label %16 unwind label %32

16:                                               ; preds = %15
  %17 = getelementptr inbounds i8, ptr %0, i64 288
  %18 = load ptr, ptr %17, align 8, !tbaa !8
  %19 = invoke noundef i32 @_ZNK7XMLNode10nChildNodeEPKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.1)
          to label %.preheader unwind label %34

.preheader:                                       ; preds = %16
  store i32 0, ptr %3, align 4, !tbaa !31
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %21 = getelementptr inbounds i8, ptr %0, i64 704
  %22 = getelementptr inbounds i8, ptr %0, i64 1352
  br label %23

23:                                               ; preds = %.lr.ph, %163
  %.082 = phi i32 [ 0, %.lr.ph ], [ %.1, %163 ]
  %.03481 = phi i32 [ 0, %.lr.ph ], [ %.135, %163 ]
  %24 = load ptr, ptr %17, align 8, !tbaa !8
  %25 = invoke noundef ptr @_ZNK7XMLNode15getChildNodePtrEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
          to label %26 unwind label %36

26:                                               ; preds = %23
  %27 = invoke noundef ptr @_ZNK7XMLNode12getAttributeEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.2, ptr noundef null)
          to label %28 unwind label %38

28:                                               ; preds = %26
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %29, label %40

29:                                               ; preds = %28
  %30 = invoke noundef ptr @_ZNK7XMLNode12getAttributeEPKcPi(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.3, ptr noundef null)
          to label %31 unwind label %38

31:                                               ; preds = %29
  invoke void @_ZN14McPATComponent24warnMissingComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %0, ptr noundef %30)
          to label %163 unwind label %38

32:                                               ; preds = %15, %2
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %167

34:                                               ; preds = %16
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %167

36:                                               ; preds = %23
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %167

38:                                               ; preds = %.invoke, %162, %142, %31, %29, %26
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %167

40:                                               ; preds = %28
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.4) #8
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %54

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %44 = invoke noalias noundef nonnull dereferenceable(2688) ptr @_Znwm(i64 noundef 2688) #9
          to label %45 unwind label %49

45:                                               ; preds = %43
  invoke void @_ZN4CoreC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(2688) %44, ptr noundef nonnull %25, i32 noundef %.082, ptr noundef nonnull %22)
          to label %46 unwind label %51

46:                                               ; preds = %45
  store ptr %44, ptr %4, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %47 unwind label %49

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %48 = add nsw i32 %.082, 1
  br label %163

49:                                               ; preds = %46, %43
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %45
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 2688) #10
  br label %53

53:                                               ; preds = %51, %49
  %.pn67 = phi { ptr, i32 } [ %50, %49 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %167

54:                                               ; preds = %40
  %55 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.5) #8
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %67

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %58 = invoke noalias noundef nonnull dereferenceable(1784) ptr @_Znwm(i64 noundef 1784) #9
          to label %59 unwind label %62

59:                                               ; preds = %57
  invoke void @_ZN9CacheUnitC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1784) %58, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %60 unwind label %64

60:                                               ; preds = %59
  store ptr %58, ptr %5, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %61 unwind label %62

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %163

62:                                               ; preds = %60, %57
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %59
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %58, i64 noundef 1784) #10
  br label %66

66:                                               ; preds = %64, %62
  %.pn65 = phi { ptr, i32 } [ %63, %62 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %167

67:                                               ; preds = %54
  %68 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.6) #8
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %80

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %71 = invoke noalias noundef nonnull dereferenceable(1352) ptr @_Znwm(i64 noundef 1352) #9
          to label %72 unwind label %75

72:                                               ; preds = %70
  invoke void @_ZN15CacheControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1352) %71, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %73 unwind label %77

73:                                               ; preds = %72
  store ptr %71, ptr %6, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %74 unwind label %75

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %163

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

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %71, i64 noundef 1352) #10
  br label %79

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

80:                                               ; preds = %67
  %81 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.7) #8
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %93

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %84 = invoke noalias noundef nonnull dereferenceable(1864) ptr @_Znwm(i64 noundef 1864) #9
          to label %85 unwind label %88

85:                                               ; preds = %83
  invoke void @_ZN16MemoryControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1864) %84, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %86 unwind label %90

86:                                               ; preds = %85
  store ptr %84, ptr %7, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %87 unwind label %88

87:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %163

88:                                               ; preds = %86, %83
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %85
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %84, i64 noundef 1864) #10
  br label %92

92:                                               ; preds = %90, %88
  %.pn61 = phi { ptr, i32 } [ %89, %88 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %167

93:                                               ; preds = %80
  %94 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %106

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %97 = invoke noalias noundef nonnull dereferenceable(1496) ptr @_Znwm(i64 noundef 1496) #9
          to label %98 unwind label %101

98:                                               ; preds = %96
  invoke void @_ZN15FlashControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1496) %97, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %99 unwind label %103

99:                                               ; preds = %98
  store ptr %97, ptr %8, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %100 unwind label %101

100:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %163

101:                                              ; preds = %99, %96
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %105

103:                                              ; preds = %98
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %97, i64 noundef 1496) #10
  br label %105

105:                                              ; preds = %103, %101
  %.pn59 = phi { ptr, i32 } [ %102, %101 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %167

106:                                              ; preds = %93
  %107 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.9) #8
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %119

109:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %110 = invoke noalias noundef nonnull dereferenceable(1384) ptr @_Znwm(i64 noundef 1384) #9
          to label %111 unwind label %114

111:                                              ; preds = %109
  invoke void @_ZN13NIUControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1384) %110, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %112 unwind label %116

112:                                              ; preds = %111
  store ptr %110, ptr %9, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %113 unwind label %114

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %163

114:                                              ; preds = %112, %109
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %111
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %110, i64 noundef 1384) #10
  br label %118

118:                                              ; preds = %116, %114
  %.pn57 = phi { ptr, i32 } [ %115, %114 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %167

119:                                              ; preds = %106
  %120 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %132

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %123 = invoke noalias noundef nonnull dereferenceable(1392) ptr @_Znwm(i64 noundef 1392) #9
          to label %124 unwind label %127

124:                                              ; preds = %122
  invoke void @_ZN14PCIeControllerC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(1392) %123, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %125 unwind label %129

125:                                              ; preds = %124
  store ptr %123, ptr %10, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %126 unwind label %127

126:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %163

127:                                              ; preds = %125, %122
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %124
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %123, i64 noundef 1392) #10
  br label %131

131:                                              ; preds = %129, %127
  %.pn55 = phi { ptr, i32 } [ %128, %127 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %167

132:                                              ; preds = %119
  %133 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.11) #8
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %.invoke, label %135

135:                                              ; preds = %132
  %136 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.12) #8
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %149

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %139 = invoke noalias noundef nonnull dereferenceable(10600) ptr @_Znwm(i64 noundef 10600) #9
          to label %140 unwind label %144

140:                                              ; preds = %138
  invoke void @_ZN13OnChipNetworkC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10600) %139, ptr noundef nonnull %25, i32 noundef %.03481, ptr noundef nonnull %22)
          to label %141 unwind label %146

141:                                              ; preds = %140
  store ptr %139, ptr %11, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %142 unwind label %144

142:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %143 = add nsw i32 %.03481, 1
  invoke void @_ZN14McPATComponent27warnIncompleteComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %0, ptr noundef nonnull %27)
          to label %163 unwind label %38

144:                                              ; preds = %141, %138
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %148

146:                                              ; preds = %140
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %139, i64 noundef 10600) #10
  br label %148

148:                                              ; preds = %146, %144
  %.pn53 = phi { ptr, i32 } [ %145, %144 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %167

149:                                              ; preds = %135
  %150 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.13) #8
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %162

152:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %153 = invoke noalias noundef nonnull dereferenceable(10280) ptr @_Znwm(i64 noundef 10280) #9
          to label %154 unwind label %157

154:                                              ; preds = %152
  invoke void @_ZN15BusInterconnectC1EP7XMLNodeP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10280) %153, ptr noundef nonnull %25, ptr noundef nonnull %22)
          to label %155 unwind label %159

155:                                              ; preds = %154
  store ptr %153, ptr %12, align 8, !tbaa !32
  invoke void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %156 unwind label %157

156:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %.invoke

.invoke:                                          ; preds = %132, %156
  invoke void @_ZN14McPATComponent27warnIncompleteComponentTypeEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %0, ptr noundef nonnull %27)
          to label %163 unwind label %38

157:                                              ; preds = %155, %152
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %161

159:                                              ; preds = %154
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %153, i64 noundef 10280) #10
  br label %161

161:                                              ; preds = %159, %157
  %.pn = phi { ptr, i32 } [ %158, %157 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %167

162:                                              ; preds = %149
  invoke void @_ZN14McPATComponent25warnUnrecognizedComponentEPKc(ptr noundef nonnull align 8 dereferenceable(1352) %0, ptr noundef nonnull %27)
          to label %163 unwind label %38

163:                                              ; preds = %.invoke, %47, %74, %100, %126, %142, %162, %113, %87, %61, %31
  %.135 = phi i32 [ %.03481, %47 ], [ %.03481, %61 ], [ %.03481, %74 ], [ %.03481, %87 ], [ %.03481, %100 ], [ %.03481, %113 ], [ %.03481, %126 ], [ %143, %142 ], [ %.03481, %162 ], [ %.03481, %31 ], [ %.03481, %.invoke ]
  %.1 = phi i32 [ %48, %47 ], [ %.082, %61 ], [ %.082, %74 ], [ %.082, %87 ], [ %.082, %100 ], [ %.082, %113 ], [ %.082, %126 ], [ %.082, %142 ], [ %.082, %162 ], [ %.082, %31 ], [ %.082, %.invoke ]
  %164 = load i32, ptr %3, align 4, !tbaa !31
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %3, align 4, !tbaa !31
  %166 = icmp slt i32 %165, %19
  br i1 %166, label %23, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %163, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret void

167:                                              ; preds = %34, %38, %53, %66, %79, %92, %105, %118, %131, %148, %161, %36, %32
  %.pn67.pn.pn.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %35, %34 ], [ %37, %36 ], [ %.pn67, %53 ], [ %.pn65, %66 ], [ %.pn63, %79 ], [ %.pn61, %92 ], [ %.pn59, %105 ], [ %.pn57, %118 ], [ %.pn55, %131 ], [ %39, %38 ], [ %.pn53, %148 ], [ %.pn, %161 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @_ZN14McPATComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(1352) %0) #7
  resume { ptr, i32 } %.pn67.pn.pn.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6System14set_proc_paramEv(ptr noundef nonnull align 8 dereferenceable(1744)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP14McPATComponentSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare void @_ZN4CoreC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(2688), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

declare void @_ZN13OnChipNetworkC1EP7XMLNodeiP14InputParameter(ptr noundef nonnull align 8 dereferenceable(10600), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN14McPATComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(1352)) unnamed_addr #6

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nobuiltin allocsize(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 = { nobuiltin 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 = { 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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 288}
!9 = !{!"_ZTS14McPATComponent", !10, i64 8, !16, i64 288, !17, i64 296, !21, i64 664, !12, i64 696, !24, i64 704, !28, i64 728, !29, i64 776, !29, i64 944, !14, i64 1112, !14, i64 1232}
!10 = !{!"_ZTS9Component", !11, i64 0, !14, i64 24, !14, i64 144, !12, i64 264, !12, i64 272}
!11 = !{!"_ZTS4Area", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"double", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTS8powerDef", !15, i64 0, !15, i64 40, !15, i64 80}
!15 = !{!"_ZTS15powerComponents", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!16 = !{!"any pointer", !13, i64 0}
!17 = !{!"_ZTS14InputParameter", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !19, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !12, i64 48, !12, i64 56, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !19, i64 84, !19, i64 85, !19, i64 86, !19, i64 87, !19, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !20, i64 152, !18, i64 156, !19, i64 160, !18, i64 164, !18, i64 168, !18, i64 172, !18, i64 176, !18, i64 180, !18, i64 184, !18, i64 188, !19, i64 192, !18, i64 196, !18, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !18, i64 224, !18, i64 228, !18, i64 232, !18, i64 236, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256, !18, i64 260, !18, i64 264, !18, i64 268, !18, i64 272, !18, i64 276, !18, i64 280, !18, i64 284, !18, i64 288, !18, i64 292, !18, i64 296, !19, i64 300, !18, i64 304, !18, i64 308, !18, i64 312, !19, i64 316, !19, i64 317, !18, i64 320, !18, i64 324, !19, i64 328, !12, i64 336, !12, i64 344, !19, i64 352, !18, i64 356, !18, i64 360, !19, i64 364}
!18 = !{!"int", !13, i64 0}
!19 = !{!"bool", !13, i64 0}
!20 = !{!"_ZTS9Wire_type", !13, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !13, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!23 = !{!"long", !13, i64 0}
!24 = !{!"_ZTSSt6vectorIP14McPATComponentSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIP14McPATComponentSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP14McPATComponentSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!28 = !{!"_ZTS11McPATOutput", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!29 = !{!"_ZTS8statsDef", !30, i64 0, !30, i64 24, !30, i64 48, !30, i64 72, !30, i64 96, !30, i64 120, !30, i64 144}
!30 = !{!"_ZTS15statsComponents", !12, i64 0, !12, i64 8, !12, i64 16}
!31 = !{!18, !18, i64 0}
!32 = !{!16, !16, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass